Microsoft® Windows® Script Host WshShortcut Object |
WSH Reference Version 1 |
Creates an object reference to a shortcut.
Not exposed; accessed through the CreateShortcut method.
The following example creates a shortcut to the currently executing script:Set WshShell = WScript.CreateObject("WScript.Shell") Set oShellLink = WshShell.CreateShortcut("Current Script.lnk") oShellLink.TargetPath = WScript.ScriptFullName oShellLink.Save