Batch file caveat when running as administrator
First command of the file should be:PUSHD directory_you_want_to_be_inThat solves it always. No testing for anything. No need to error out, because your expected file's gonna be in the expected directory.
First command of the file should be:
PUSHD directory_you_want_to_be_in
That solves it always. No testing for anything. No need to error out, because your expected file's gonna be in the expected directory.