All Properties
Property: WshShortcut.Description
object.
Arguments
The
Description
property sets or retrieves a String description of the shortcut. Under Windows 2000, this property corresponds to the "Comment" field that can be set when the properties of a Shortcut are viewed. Under Windows 2000, the value of this property is also displayed in a tool-tip when the mouse is held over the shortcut icon.
The following VBScript code sets the
Description
for a shortcut called "Test.vbs.lnk", saves the change back to disk, and then displays the modified description value..
Code:
Set objShell = WScript.CreateObject("WScript.Shell")
Set objShtCut = objShell.CreateShortcut("C:\Test.vbs.lnk")
objShtCut.Description = "Hello World"
objShtCut.Save
WScript.Echo objShtCut.Description
Output:
Hello World
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information