Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - buffers() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 BUFFERS()
 Evaluates setting of BUFFERS in Config.sys.
 Returns <expN> number of buffers on the BUFFERS= line in Config.sys.

 Returns  Zero if BUFFERS is not specified in Config.sys
          -1 if Config.sys cannot be found.

 Uses COMSPEC to determine where to find Config.sys.

 m_buffers = BUFFERS()
 DO CASE
    CASE m_buffers = -1
       ? "Error -- cannot find Config.sys"
    CASE m_buffers < 10 .OR. m_buffers > 15
       ? "Error -- set BUFFERS between 10-15 in Config.sys"
    OTHERWISE
       ? "Congratulations -- Config.sys is OK!"
 ENDCASE

 Hazard
    If you boot from a floppy disk, then change disks, or SET COMSPEC
    to a different disk drive, this will not return the correct result
    unless the new disk or drive also contains a Config.sys file with
    the same information as the one with which you booted.


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: COUNTRY() FILES() LASTDRIVE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson