[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson