WSH » WshShortcut » Description

Syntax:
object.Description

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.

Examples

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
Explanation:

This 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..

Language(s): VBScript