Windows Script Host  

FullName Property (WshUrlShortcut Object)

Returns the fully qualified path of the shortcut object's target.

object.FullName 

Arguments

object
WshUrlShortcut object.

Remarks

String. Read-only.

The FullName property is a read-only string representing the fully qualified path to the shortcut's target.

Example

The following code retrieves the fully qualified path of a URL shortcut.

[VBScript]
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web Site.url")
oUrlLink.TargetPath = "http://www.microsoft.com"
oUrlLink.Save
WScript.Echo oUrlLink.FullName
[JScript]
var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\Microsoft Web Site.url");
oUrlLink.TargetPath = "http://www.microsoft.com";
oUrlLink.Save();
WScript.Echo (oUrlLink.FullName);

See Also

Path Property | WScript Object | WshShortcut Object | WshUrlShortcut Object