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 - files() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILES()
 Evaluates the setting of FILES in Config.sys.
 Returns <expN> number of files on FILES= line in Config.sys.

 Returns zero if FILES is not specified in Config.sys
         -1 if Config.sys cannot be found.

 Uses COMSPEC to determine where to find Config.sys.

 m_files = FILES()
 DO CASE
    CASE m_files = -1
       ? "Error -- cannot find Config.sys"
    CASE m_files < 20
       ? "Error -- set FILES=20 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: BUFFERS() COUNTRY() LASTDRIVE()

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