FullName Property (WshUrlShortcut Object)
Returns the fully qualified path of the shortcut object's target.
object.FullName
The following code retrieves the fully qualified path of a URL shortcut.
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web Site.url") oUrlLink.TargetPath = "http://www.microsoft.com" oUrlLink.Save WScript.Echo oUrlLink.FullName
var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\Microsoft Web Site.url"); oUrlLink.TargetPath = "http://www.microsoft.com"; oUrlLink.Save(); WScript.Echo (oUrlLink.FullName);
Applies To:
Community Additions
Show: