Freedisk.exe


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 Syntax

One Stepfreedisk x: minimum_bytes

Where:

x:
is the letter of the disk drive to check
minimum_bytes
is the decimal number of minimum free bytes to check for on the disk drive. If at least this number of bytes is available, FreeDisk returns a 0; if not, it returns a 1.

FreeDisk Example


C:>Freedisk c: 500000000

OK


Indicates that there is at least 500 megabytes (MB) of free space available on drive C.

File Required