Missing “Run as” .bat / batch – Run .bat file as administrator

I was trying to run a .bat file as administrator in Windows XP today and noticed that run as was not an option.  A quick Google turned up this fix.

Copy the below to a notepad file

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\batfile\shell\runas\command] @=”\”%1\” %*”

Save the notepad file as runas.reg for example.  The .reg extension is very important.  Double-click the runas.reg registry file.  Click Yes and Ok.  Now right-click the .bat file and you should now have the Run as option.

Leave a Reply

Your email address will not be published. Required fields are marked *