Created
February 3, 2013 07:25
-
-
Save der3k/4700836 to your computer and use it in GitHub Desktop.
Capture script relative directory from windows batch. It also works when launched from different drive.
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
pushd %~dp0.. | |
set LIB=%cd%\lib | |
popd | |
echo %LIB% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment