Microsoft® Windows® Script Host WshUrlShortcut Object |
WSH Reference Version 1 |
Creates an object reference to a URLshortcut.
Not exposed; accessed through the CreateShortcut method.
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