Is it possible to create a shortcut from a .exe using batch scripting?
Windows – Create a Windows shortcut through a batch file (.bat)
batch-filescriptingwindows
Related Topic
- Windows – Checking file properties in a batch script
- Shortcut on client to run bat file on a server
- Windows – How to create an ODBC connection from .bat file in Windows
- Windows Batch File – How to Sleep in a Batch File
- Windows – How to run batch file without a window in ONE file
- Running Batch file with elevated rights through GPO
Best Answer
Using batch alone? Probably not, unless you're just copying a shortcut from the Start Menu to somewhere else. We had this issue when building/refining our latest deployment process and certain groups wanted shortcuts to everything on their desktop.
The Windows NT Resource Kit has a utility named
shortcut.exe
that could do this. I have never tested it on XP/2003/2008.If you can get away with VBS, this would work:
Source