change exe option to run as administrator by bat script on Windows 7
I can't disable UAC in Windows 7 and I want to change .exe
option to run as administrator. I can right click on icon and goto compatibility then change this option through GUI but I have to do by .bat..... Can someone give me a demo .bat.
Right-click the BAT file and press Create Shortcut. The shortcut will appear. You can edit the shortcut's properties and set it to always run as administrator. Of course, you have to run the BAT file through the shortcut now.
I don't think it's possible in plain windows without installing an additional utility to elevate priviledges from the command line.
If you accept bundling such an utility with your bat file (or installing it system-wide), check this out: http://www.winability.com/elevate/