次の方法で共有


FullName プロパティ (WshUrlShortcut オブジェクト)

ショートカット オブジェクトのリンク先への絶対パスを返します。

object.FullName 

引数

  • object
    WshShortcut オブジェクトです。

解説

読み取り専用の文字列値です。

FullName プロパティは、ショートカットのリンク先への絶対パスを示す読み取り専用の文字列値です。

使用例

次のコードは、URL ショートカットへの絶対パスを取得する例です。

VBScript

set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web Site.url")
oUrlLink.TargetPath = "https://www.microsoft.com"
oUrlLink.Save
WScript.Echo oUrlLink.FullName

JScript

var oUrlLink = WshShell.CreateShortcut(strDesktop + "\\Microsoft Web Site.url");
oUrlLink.TargetPath = "https://www.microsoft.com";
oUrlLink.Save();
WScript.Echo (oUrlLink.FullName);

参照

Path プロパティ | WScript オブジェクト | WshShortcut オブジェクト | WshUrlShortcut オブジェクト