Admin Tip #273: Commandline creation of shortcuts |
Hits: Failed to execute CGI : Win32 Error Code = 3
|
shortcut -t pathtoprogram -n shortcutname -i pathtoicon -x iconindex -d startupdirectory
For example, to create a shortcut for my editor, UltraEdit:
shortcut -t "D:\Program Files\UltraEdit\UEDIT32.EXE" -n "My Editor.lnk" -i "D:\Program Files\UltraEdit\UEDIT32.EXE" -x 0 -d d:\data
where the parameters are :
-t : path to object to be linked
-n : lnk file name
-i : path to object icon file
-x : icon index (0 - first icon, 1 - second icon, ...)
-d : startup directory
The utility can be found in the \i386\desktop folder. Its on the original server reskit CD but not on supplement 4.