-
-
Save phidn/f5d8a148c7d8cbb479b350d94eae64ec to your computer and use it in GitHub Desktop.
Favorite folders batch (For Windows)
This file contains hidden or 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
| @setlocal | |
| @echo off | |
| set userChoice=%1 | |
| rem The format is: | |
| rem call :condition SHORTCUT FOLDER | |
| call :condition web c:\Git\SecThor\SecWeb\App\ | |
| call :condition cloud c:\Git\SecThor\SecCloud\dojo.backend\ | |
| call :condition good c:\Users\Vitaly\Dropbox\Projects\goodread-friends\ | |
| endlocal | |
| popd | |
| GOTO :eof | |
| :condition | |
| rem We do PUSHD twice since endlocal does popd once :| | |
| if "%userChoice%"=="%1" pushd %2 & pushd %2 & echo pushd %2 | |
| if "%userChoice%"=="" echo %1 =^> %2 | |
| GOTO :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Step 01 Create this, C:\BatchUtils\fav.bat
Step 02: Edit the system environment variables → PATHS in user variables & system variables