Run as administrator myapp.exe

User avatar
sal21
PlatinumLounger
Posts: 4563
Joined: 26 Apr 2010, 17:36

Run as administrator myapp.exe

Post by sal21 »

In c:/mydir have myapp.exe
I Need via .Bat to run myapp.exe as administrator.

Note.
Saved the .bat in the same dir of myapp.exe.

How to?

User avatar
StuartR
Administrator
Posts: 12913
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Run as administrator myapp.exe

Post by StuartR »

You could create a shortcut to the BAT file and set the shortcut properties to always run as Administrator

Navigate to C:/mydir in Windows Explorer
Right click the BAT file and choose copy
Right click on the background and paste shortcut
Right click the shortcut, click Advanced
Check the box "Run as administrator"
OK back out (twice).
BAT as admin.png
You do not have the required permissions to view the files attached to this post.
StuartR