本ページには広告が含まれています。
Notice: Undefined offset: 1 in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 188
Notice: Trying to access array offset on value of type null in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 13
Notice: Undefined variable: id in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 61
Notice: Trying to access array offset on value of type null in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 27
Warning: in_array() expects parameter 2 to be array, null given in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 41
Notice: Undefined variable: html in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(663) : eval()'d code on line 23
アイテムがショートカットかを表すBoolean値を返します。
- 構文
- Boolean = FolderItem.IsLink
- 引数
- 戻り値
- TRUE
- アイテムがショートカットである
- FALSE
- アイテムがショートカットではない
FolderItem オブジェクトを返すメソッド・プロパティ
- Folder.ParseName メソッド
- 指定されたアイテムのFolderItem オブジェクトを作成して返します。
- FolderItems.Item メソッド
- コレクション内の指定されたアイテムのFolderItem オブジェクトを取得します。
プログラム実行例
指定したファイルがショートカットかを取得
DIM Shell = CREATEOLEOBJ("Shell.Application")
DIM Folder = Shell.NameSpace("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\UWSC Pro\")
DIM FolderItem = Folder.ParseName("UWSC Pro.lnk")
PRINT FolderItem.IsLink()結果
True使用関数
