WshCollection.Countカウント プロパティ

WshCollectionオブジェクト内のアイテムの数を返します。WshCollection.length プロパティと同じ結果を返します。

構文
  1. Integer = WshCollection.Count
引数
戻り値

WshCollection オブジェクトを返すメソッド・プロパティ

WshShell.SpecialFolders プロパティ
SpecialFoldersオブジェクト(特定フォルダのコレクション)を返します。

使い方

WshCollectionコレクションの数を取得します。

UWSC
DIM WshShell = CREATEOLEOBJ("WScript.Shell")
DIM WshCollection = WshShell.SpecialFolders()

PRINT WshCollection.Count
結果
プレーンテキスト
18

この記事は役に立ちましたか?

はい
いいえ
ご協力ありがとうございます。