WSH » WshUrlShortcut » Save

Syntax:
object.Save ()

The Save method savesthe shortcut at the location specified by the FullName property. All changes made to a shortcut object will be lost unless this method is called before destroying the object.

The Save method saves the URL shortcut file on the hard disk.

Examples

Code:
set WshShell = CreateObject("WScript.Shell")
strDesktopPath = WshShell.SpecialFolders("Desktop")

Set WshUrlShortcut = WshShell.CreateShortcut(strDesktopPath & "\devguru.url")
WshUrlShortcut.TargetPath = "http://www.devguru.com"
WshUrlShortcut.Save
Explanation:

This VBScript code creates an URL shortcut to the DevGuru web site and saves it on the user's desktop.

Language(s): VBScript