Thursday, 18 July 2019

windows 7 - Unable to run batch file

I'm trying to run a .bat file which contains the below code


echo "Test"
pause

It throws the following error


Windows cannot find 'c:\Users\test\Desktop\run.bat'.
Make sure you typed the name correctly, and then try again.

enter image description here


The above user has all administrator rights.


But when I run this .bat as Run as Administrator it is executing properly. I tried running in new user account with admin privileges but still no luck.


I tried to modify regedit:


Hkey_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat

But .bat key doesn't exist there.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...