Created
July 1, 2014 05:53
-
-
Save dewe/f5dd193acae0eb79af01 to your computer and use it in GitHub Desktop.
How to set workingdirectory and environment variables local to cmd script
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 | |
setlocal | |
pushd %~dp0 | |
set APPDATA=%CD%\data | |
echo APPDATA=%APPDATA% | |
popd | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment