batch1 [bat] 디스크 용량 로그 출력 @echo off :: C drive format_table PowerShell "Get-WmiObject win32_logicaldisk -filter """DeviceID='c:'""" | FT DeviceID, @{Name='DiskSize (GB)'; E={\"{0:N1} GB\" -F($_.Size/1GB)}}, @{Name='FreeSpace (GB)'; E={\"{0:N1} GB\" -F($_.freespace/1GB)}}" :: C drive Size PowerShell "$size=(Get-WmiObject win32_logicaldisk -filter """DeviceID='c:'""").Size; [math]::Round($size/1GB, 2).toString();" :: C dri.. 2021. 4. 2. 이전 1 다음