Dec 092017
 
Determines the amount of free RAM in system, and returns that value through ERRORLEVEL. Excellent for batch files.
File BATCHRAM.ZIP from The Programmer’s Corner in
Category Batch Files
Determines the amount of free RAM in system, and returns that value through ERRORLEVEL. Excellent for batch files.
File Name File Size Zip Size Zip Type
BATCHRAM.DOC 1473 675 deflated
BATCHRAM.EXE 4912 2913 deflated
BATCHTST.BAT 2127 358 deflated

Download File BATCHRAM.ZIP Here

Contents of the BATCHRAM.DOC file





BatchRam Program

Version 1.00

November 7, 1989


Rob Rosenberger
CompuServe 74017,1344

Barn Owl Software
P.O. Box 74
O'Fallon, IL 66269


SYNTAX: BATCHRAM
BATCHRAM ? {displays a useful help screen}


This program's sole job is to determine how much memory is avail-
able for programs. The result -- divided by ten -- is returned
as the DOS ERRORLEVEL. You can therefore make decisions within
batch files based on the memory you have available. Consult your
DOS manual to learn how to use the ERRORLEVEL variable.

BatchRam comes with a demonstration batch file. Type "BATCHTST"
at the DOS prompt to see the program swing into action.


Special notes for advanced users:

BatchRam takes into account the current DOS environment
and its own memory requirements. The result is divided
by 10,240 & truncated (not rounded) to generate a legal
ERRORLEVEL value.


This is a public-domain program, so you can use it at no charge.
But I hope you'll thank me if you like it. Programmers need to
feel important, too! A postcard or message is all it takes.


 December 9, 2017  Add comments

Leave a Reply