BATFREE.EXE 16-bit DOS MODE
Purpose Return the amount of hard disk space available as a DOS ERRORLEVEL.
Description This sets its exit DOS ERRORLEVEL based on how much space is still free on the target disk drive. The ERRORLEVEL can be tested by other programs to monitor disk space. Also see the example file DISKTEST.BAT in this directory.

    Correct syntax:

        batfree [options] diskletter

        Options:

          -m           return number of megabytes free (default)
          -k           return number of kilobytes free
          -d nn        divide answer by scaling factor nn
          diskletter   A:, B:, etc. (optional)

    Return the amount of free disk space as errorlevel -
    result reported as kilobytes or megabytes

		

DOWNLOAD