Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>isconfig()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ISCONFIG()

    ISCONFIG() checks either the CONFIG.SYS to ensure that it contains
    certain minimum FILES and BUFFERS values appropriate for running
    your application. In similar fashion, you can also direct this
    function to check a network SHELL.CFG file for FILE HANDLES and
    CACHE BUFFERS values.  This function is ideal for handling
    configuration at remote sites.

    Syntax

    ISCONFIG(<filename>, [<files>, <buffers>])

    Required Parameter

    <filename> is the file to check.  This should be either CONFIG.SYS
    or SHELL.CFG. If you pass something other than these, the function
    will default to CONFIG.SYS.

    Optional Parameters

    <files> is a numeric representing the minimum required number of
    file handles to check for. If you do not pass this, the default will
    be 50.

    <buffers> is a numeric representing the minimum required number of
    buffers to test for.  If you do not pass this, the default will be
    10.

    Return Value

    A logical True (.T.) if CONFIG.SYS/SHELL.CFG did not require
    changes; False (.F.) if it did.

    Notes

    If the file does not contain the minimum values you have specified,
    the user will be informed that changes are required and asked for
    confirmation.  If they go ahead with the changes, the original file
    will be saved with the extension .BAK and they will then be asked to
    restart the computer so that the new values can take effect.  If
    they do not confirm the changes, they will be reminded of the
    statements that must appear in the file before running your program.

    Sample Usage

    *** we need at least 90 files/20 buffers in CONFIG.SYS
    IF ! ISCONFIG("CONFIG.SYS", 90, 20)                   
       QUIT                                               
    ENDIF                                                 
    *** need at least 60 files & 10 buffers in SHELL.CFG  
    IF ! ISCONFIG("SHELL.CFG", 60, 10)                    
       QUIT                                               
    ENDIF                                                 

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