New
#11
I know this thread is old as crap, so I apologize for resurrecting it; but I was having the EXACT same issue, and found what was causing it. My batch file was running the following "cd "%~dp0"" to navigate to the directory that the batch file was running out of; but upon right-clicking, and selecting "Run as administrator", the path defaults to C:\Windows\System32\. The batch file that I was attempting to run lived on the E:\ drive, so I simply had to change the batch file to "cd /d "%~dp0"" (the /d switch tells cd to change drives as well as paths), and then it began working correctly. This effectively fixed my issue. Hopefully this might help SOMEONE save some time in the future! =)