Microsoft® Windows® Script Host
WshShortcut Object
WSH Reference
Version 1

See Also                      Properties                      Methods


Description
Creates an object reference to a shortcut.
Remarks
Not exposed; accessed through the CreateShortcut method.

Example
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