wmic 监视磁盘空间的批命令

 DiskSpace.bat

方便人看的写法
@echo off
wmic LogicalDisk where DriveType=3 get Caption,FreeSpace,Size

 

方便编程读的写法

@echo off
wmic LogicalDisk where DriveType=3 get Caption,FreeSpace,Size /value


 

你可能感兴趣的:(Windows)