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.FullName
object[.
FullName]
The
FullName
property is the default property for the
WshShortcut
object and it returns the full path to the shortcut. This property is read only.
The following JScript code opens and displays the full path to a shortcut called "Shortcut to Test.vbs.lnk" on the Windows 2000 Desktop of a user called "DevGuru". Since "\" is the escape character in JScript strings we have to use "\\" in the example code to represent a single "\" character.
Code:
objShell = WScript.CreateObject("WScript.Shell")
objShtCut = objShell.CreateShortcut
("C:\\Documents And Settings\\DevGuru\\Desktop\\Shortcut to Test.vbs.lnk") WScript.Echo(objShtCut.FullName)
Output:
C:\Documents And Settings\DevGuru\Desktop\Shortcut to Test.vbs.lnk
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information