Category Archives: NT Shell Script

Free Space percentage wmic script

Command Line script using wmic and built-in NT Shell scripting commands to retrieve free space, total disk size and calculate percent free for local hard disks. @echo off for /f “skip=1 usebackq delims==” %%i in (`wmic logicaldisk where “mediatype=’12′” get … Continue reading

Posted in NT Shell Script | Leave a comment