Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
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-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information