ASP 드라이브 개체
Drive 개체는 로컬 디스크 드라이브 또는 네트워크 공유에 대한 정보를 가져오는 데 사용됩니다.
더 많은 예
의 전체 크기를 가져오는 방법.
의 사용 가능한 공간을 가져오는 방법.
의 여유 공간을 가져오는 방법.
의 드라이브 문자를 가져오는 방법.
의 드라이브 유형을 가져오는 방법.
의 파일 시스템을 가져오는 방법.
지정된 드라이브가 준비되었는지 확인하는 방법.
의 경로를 가져오는 방법.
의 루트 폴더를 가져오는 방법.
의 일련 번호를 가져오는 방법.
드라이브 개체
Drive 개체는 로컬 디스크 드라이브 또는 네트워크 공유에 대한 정보를 반환하는 데 사용됩니다. Drive 개체는 드라이브의 파일 시스템 유형, 여유 공간, 일련 번호, 볼륨 이름 등에 대한 정보를 반환할 수 있습니다.
참고: 드라이브 개체를 사용하여 드라이브 콘텐츠에 대한 정보를 반환할 수 없습니다. 이를 위해 Folder 개체를 사용해야 합니다.
Drive 개체의 속성으로 작업하려면 FileSystemObject 개체를 통해 Drive 개체의 인스턴스를 만들어야 합니다. 첫 번째; FileSystemObject 개체를 만든 다음 GetDrive 메서드 또는 FileSystemObject 개체의 Drives 속성을 통해 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 |