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
DevGuru
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.devguru.com"
WshUrlShortcut.Save
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information