コマンドプロンプトでdiskの情報を表示することができます。
「wmic logicaldisk」コマンドを使用します。
1 2 3 4 5 6 7 |
C:\Users>wmic logicaldisk Access Availability BlockSize Caption Compressed ConfigManagerErrorCode ConfigManagerUserConfig CreationClassName Description DeviceID DriveType ErrorCleared ErrorDescription ErrorMethodology FileSystem FreeSpace InstallDate LastErrorCode MaximumComponentLength MediaType Name NumberOfBlocks PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProviderName Purpose QuotasDisabled QuotasIncomplete QuotasRebuilding Size Status StatusInfo SupportsDiskQuotas SupportsFileBasedCompression SystemCreationClassName SystemName VolumeDirty VolumeName VolumeSerialNumber 0 C: FALSE Win32_LogicalDisk ローカル固定ディスク C: 3 NTFS 8085815296 255 12 C: 109884444672 FALSE TRUE Win32_ComputerSystem kamo-DESKTOP Windows xxxxxxxx 0 D: FALSE Win32_LogicalDisk ローカル固定ディスク D: 3 NTFS 39242141696 255 12 D: 129274736640 FALSE TRUE Win32_ComputerSystem kamo-DESKTOP Data yyyyyyyy C:\Users> |
横に非常に長くなってしまうので、以下のように絞って表示するほうが一般的です。
1 2 3 4 5 6 7 |
C:\Users>wmic logicaldisk get name,size,freespace FreeSpace Name Size 7183966208 C: 109884444672 39242141696 D: 129274736640 C:\Users> |