FullName Property |
Description
Returns the fully qualified path of the shortcut object's target.
PowerBASIC Syntax
Remarks
The FullName property contains a read-only string value indicating the fully qualified path to the shortcut's target.
Example [PowerBASIC]
#INCLUDE "WSHOM.INC"
' Create an instance of the Windows Script Host LOCAL pWsh AS IWshShell pWsh = NEWCOM "WScript.Shell"
' Create a shortcut programatically (if it already exists, CreateShortcut opens it) LOCAL pLnk AS IWshURLShortcut pLnk = pWsh.CreateShortcut(UCODE$(EXE.Path$ & "Microsoft Web Site.url"))
' Sets the TargetPath property pLnk.TargetPath UCODE$("http://www.microsoft.com") ' Saves the shortcut file to disk pLnk.Save
' Get the parameters to to see if they have changed STDOUT "Shortcut full name: " & ACODE$(pLnk.FullName) STDOUT "Shortcut target path: " & ACODE$(pLnk.TargetPath)
|