Created
November 13, 2015 01:38
-
-
Save hkuno9000/858a5670dd9039d29b8a to your computer and use it in GitHub Desktop.
fuzzy chdir on Windows batch file: change folder on a current folder or parent folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /D %%f in ("%1*" "..\%1*" "..\..\%1*") do if exist "%%f" chdir "%%f" & goto :EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment