2
Shortcut [Version 1.11]
4
Creates, modifies or queries Windows shell links (shortcuts)
7
The syntax of this command is:
9
Shortcut.exe /F:filename /A:C|E|Q [/T:target] [/P:parameters] [/W:workingdir]
10
[/R:runstyle] [/I:icon,index] [/H:hotkey] [/D:description]
12
/F:filename : Specifies the .LNK shortcut file.
13
/A:action : Defines the action to take (C=Create, E=Edit or Q=Query).
14
/T:target : Defines the target path and file name the shortcut points to.
15
/P:parameters : Defines the command-line parameters to pass to the target.
16
/W:working dir : Defines the working directory the target starts with.
17
/R:run style : Defines the window state (1=Normal, 3=Max, 7=Min).
18
/I:icon,index : Defines the icon and optional index (file.exe or file.exe,0).
19
/H:hotkey : Defines the hotkey, a numeric value of the keyboard shortcut.
20
/D:description : Defines the description (or comment) for the shortcut.
23
- Any argument that contains spaces must be enclosed in "double quotes".
24
- If Query is specified (/A:Q), all arguments except /F: are ignored.
25
- To find the numeric hotkey value, use Explorer to set a hotkey and then /A:Q
26
- To prevent an environment variable from being expanded until the shortcut
27
is launched, use the ^ carat escape character like this: ^%WINDIR^%
30
/f:"%ALLUSERSPROFILE%\Start Menu\Programs\My App.lnk" /a:q
31
/f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe /h:846
32
/f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:e /p:C:\Setup.log /r:3
34
An argument of /? or -? displays this syntax and returns 1.
35
A successful completion will return 0.
38
Copyright 2000-2005 Marty List, www.OptimumX.com
41
==================================================================
47
- Fixed display problem for hotkeys with extended characters.
48
- Removed reference to .URL files in the syntax, since URL files are not supported yet.
51
- Fixed COM memory leak, enhanced exit/result codes, enhanced syntax.