All Properties
Method: WshUrlShortcut.Save
WshUrlShortcut.
Save
()
The
Save
method saves the URL shortcut file on the hard disk.
The following VBScript code creates an URL shortcut to the
Pleasant.ch
web site and saves it on the user's desktop.
Code:
set WshShell = CreateObject("WScript.Shell")
strDesktopPath = WshShell.SpecialFolders("Desktop")
Set WshUrlShortcut = WshShell.CreateShortcut(strDesktopPath & "\devguru.url")
WshUrlShortcut.TargetPath = "http://www.pleasant.ch"
WshUrlShortcut.Save