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

See Also                      Properties                      Methods


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

Example
The following example creates a URLshortcut to www.microsoft.com:
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oUrlLink = WshShell.CreateShortcut("Microsoft Web Site.URL")
oUrlLink.TargetPath = "http://www.microsoft.com"
oUrlLink.Save