Click here to Skip to main content
15,898,035 members
Articles / Batch

Batch file caveat when running as administrator

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
1 Mar 2011CPOL 9.4K   3  
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.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions