Dec 062017
 
.BAT util from PC Mag: Errorlevel 0 if less than 1 mb free memory.
File MEGSFREE.ZIP from The Programmer’s Corner in
Category Batch Files
.BAT util from PC Mag: Errorlevel 0 if less than 1 mb free memory.
File Name File Size Zip Size Zip Type
MEGSFREE.COM 50 50 stored
MEGSFREE.DOC 454 278 deflated
MEGSFREE.SCR 286 176 deflated

Download File MEGSFREE.ZIP Here

Contents of the MEGSFREE.DOC file



MegsFree.COM sets DOS errorlevel to one for each mb of free
disk space on the current, or specified drive: i.e., MegsFree D:.

Examples:
If E: had 7,999,999 bytes free, MegsFree E: would return 7.
If F: had 999,999 bytes free, MegsFree F: would return 0.

Maximum is 255 for 255 mb free or greater.

MegsFree is taken from PC Magazine, Jan. 28, 1992, page 288.
A small DEBUG script file, and documentation are shown there.



 December 6, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)