icecom4
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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.
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.
ASKER
Thank you!
http://www.verboon.info/index.php/2011/03/running-an-application-as-administrator-or-in-compatibility-mode/