Returns the fully qualified path of the shortcut object's target.
object.FullName
Arguments
- object
- WshShortcut object.
Remarks
The FullName property contains a read-only string value indicating the fully qualified path to the shortcut's target.
Example
The following code retrieves the fully qualified path of a shortcut.
[VBScript] set WshShell = CreateObject("WScript.Shell")strDesktop = WshShell.SpecialFolders("Desktop")set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")oShellLink.TargetPath = WScript.ScriptFullNameoShellLink.WindowStyle = 1oShellLink.Hotkey = "CTRL+SHIFT+F"oShellLink.IconLocation = "notepad.exe, 0"oShellLink.Description = "Shortcut Script"oShellLink.WorkingDirectory = strDesktopoShellLink.SaveWScript.Echo oShellLink.FullName
в этом сэмплике в проекте поставьте Reference - Windows Script Host Object Model