Very simple: setlocal cd /d %~dp0 File.exe You can also do Pushd "%~dp0" Which also takes running from a unc path into consideration.
This comment has been removed by the author.
ReplyDelete