I have a batch file which is in a directory and must be run from there as well because it updates files within this directory. This works perfectly fine, except when t
A working solution here:
http://www.vistax64.com/vista-general/79849-run-administrator-changes-default-directory.html
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
ECHO The batch file is located in directory %BATDIR%