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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information