This command-line tool checks for free disk space. When it is used in a batch file, it returns a "0" if there is enough space and a "1" if there isn't. When used from the command line, FreeDisk returns "OK" when the disk space is available, and "Too Small" when it isn't.
freedisk x: minimum_bytes
Where:
C:>Freedisk c: 500000000
OK
Indicates that there is at least 500 megabytes (MB) of free space available on drive C.
File Required