Please use the following for creating lnk files: Creating shortcuts from the command-line. The shortcutJS.bat is not normally used, but useful in rare cases that shortcuts created by the createShortCuts.exe do not start or the createShortCuts.exe does not start.

In order to examine, create or edit windows shortcuts, the following js bat script is available: shortcutJS.bat

Usage:

shortcutJS.bat -list     <lnkFile>
shortcutJS.bat -shortcut <lnkFile>  -target <target>  [-args <args>] [-description <description>] [-workdir <workdir>] [-admin true|false]
shortcutJS.bat -edit     <lnkFile> [-target <target>] [-args <args>] [-description <description>] [-workdir <workdir>] [-admin true|false]
shortcutJS.bat -help
commanddescription
-listLogs the command to create an existing shortcut on a different PC.  This can be useful in a CITRIX environment.
-shortcutCreates a new shortcut.
-editUpdates an existing shortcut.
-helpPrints the above syntax for using the script.





  • No labels