freedisk |
Checks for free space on a disk.
freedisk [/s Computer [/u [ Domain \] User [/p [ Password ]]]] [/d Drive ] [ Value ]
Name or IP address of a remote computer (if omitted, defaults to local computer) and credentials for running the script (if omitted, defaults to SYSTEM built-in identity).
Drive to check for free space.
Amount of free space to check for (can be in bytes, KB, MB, GB, TB, PB, or NB).
Check if E: drive has at least 100-MB free space:
freedisk /d e: 100MB SUCCESS: The specified 104,857,600 byte(s) of free space are available on "E:\" volume.
When performing unattended installations, use freedisk in a batch file to verify sufficient free space for the installation to proceed.
defrag , diskpart , Disks , format , freedisk