How to assign chdir to a variable in .bat?
The current directory is available in the pseudo-variable %cd%
. So:
set X=%cd%
stores it in a variable named X.
The current directory is available in the pseudo-variable %cd%
. So:
set X=%cd%
stores it in a variable named X.