1,285 pts.
 How to change compatibility options for an exe file in a batch file on Windows 7?
Is there a way to change the compatibility options on an executable file in a batch file? I'd like to be able to set it to run as "xp sp2" or run as administrator.
Is there a way to do that?


Software/Hardware used:
Windows 7
ASKED: March 15, 2011  6:25 PM
UPDATED: March 17, 2011  11:23 AM

Answer Wiki:
Create another batch by the following.... runas /user:<adminusername> /savecred x:xxxx.bat Now change ur original batch file name as xxxx.bat & also "adminusername with admin account name. Remember, this will ask for admin password on first run only. Thanks!
Last Wiki Answer Submitted:  March 17, 2011  11:23 am  by  Subhendu Sen   22,035 pts.
All Answer Wiki Contributors:  Subhendu Sen   22,035 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _