65.9K
CodeProject is changing. Read more.
Home

Batch file caveat when running as administrator

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Mar 1, 2011

CPOL
viewsIcon

9861

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.