Link to home
Start Free TrialLog in
Avatar of icecom4
icecom4Flag for United States of America

asked on

using batch script, must create shortcut, put on desktop, with permissions

RE: batch script for Windows 7 Vista

Using batch script, I need to be able to create a shortcut of a .exe file, put on desktop...
and add the following windows compatibility settings (from the batch, not after):
1) run as administrator aka "runasadmin"
2) windows xp sp3 compatibility

Example program:
c:\program files\bquest\bquest.exe      


Avatar of cwstad2
cwstad2
Flag of United Kingdom of Great Britain and Northern Ireland image

i found this afticle which may offer a round about solution to your problem. By creating a batch file and running a regkey, you may be able to achieve what your looking to do. Hope this helps

http://www.verboon.info/index.php/2011/03/running-an-application-as-administrator-or-in-compatibility-mode/
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of icecom4

ASKER

I'm not much of a vbs person, but when try to open the file it just opens like a text document.  

Do I have to put anything before or after these lines to make it execute?
You need to make sure the file has a .vbs extension, and not a .txt

When you do the Save As, put quote around the file name, so it's like
"CreateShortcut.vbs"

You probably aren't viewing "known extensions" in Windows.

Rob.
Avatar of icecom4

ASKER

Thank you!