ASPドライブオブジェクト
Driveオブジェクトは、ローカルディスクドライブまたはネットワーク共有に関する情報を取得するために使用されます。
その他の例
の合計サイズを取得する方法。
の使用可能スペースを取得する方法。
の空き容量を取得する方法。
たドライブのドライブ文字を取得する方法。
たドライブのドライブタイプを取得する方法。
のファイルシステムを取得する方法。
指定したドライブの準備ができているかどうかを確認する方法。
のパスを取得する方法。
のルートフォルダを取得する方法。
のシリアル番号を取得する方法。
ドライブオブジェクト
Driveオブジェクトは、ローカルディスクドライブまたはネットワーク共有に関する情報を返すために使用されます。Driveオブジェクトは、ドライブのファイルシステムの種類、空き領域、シリアル番号、ボリューム名などに関する情報を返すことができます。
注: Driveオブジェクトを使用してドライブのコンテンツに関する情報を返すことはできません。この目的のために、Folderオブジェクトを使用する必要があります。
Driveオブジェクトのプロパティを操作するには、FileSystemObjectオブジェクトを介してDriveオブジェクトのインスタンスを作成する必要があります。初め; FileSystemObjectオブジェクトを作成してから、GetDriveメソッドまたはFileSystemObjectオブジェクトのDrivesプロパティを使用してDriveオブジェクトをインスタンス化します。
Driveオブジェクトのプロパティを以下に説明します。
プロパティ
Property | Description |
---|---|
AvailableSpace | Returns the amount of available space to a user on a specified drive or network share |
DriveLetter | Returns one uppercase letter that identifies the local drive or a network share |
DriveType | Returns the type of a specified drive |
FileSystem | Returns the file system in use for a specified drive |
FreeSpace | Returns the amount of free space to a user on a specified drive or network share |
IsReady | Returns true if the specified drive is ready and false if not |
Path | Returns an uppercase letter followed by a colon that indicates the path name for a specified drive |
RootFolder | Returns a Folder object that represents the root folder of a specified drive |
SerialNumber | Returns the serial number of a specified drive |
ShareName | Returns the network share name for a specified drive |
TotalSize | Returns the total size of a specified drive or network share |
VolumeName | Sets or returns the volume name of a specified drive |