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


Syntax:       L_AUTOEXEC(<expN> [,<expC1>] [,<expC2>])


Purpose:      To search for specific information in the AUTOEXEC.BAT file.


Arguments:    <expN> is a code for the information required.
              The function will return a command line from AUTOEXEC.BAT
              containing the setting indicated.

              <expN> =  1: ASSIGN
                        2: FASTOPEN
                        3: KEYB
                        4: MODE
                        5: PATH
                        6: PROMPT
                        7: SET
                        8: SET <expC>

              <expC1> is optional and can be used only with <expN> = 8.
              The function will search for and return the command line
              containing the specified SET.

              <expC2> is optional and allows the specification of a drive
              on which the file AUTOEXEC.BAT is expected to be found.

              <expC2> must be a single letter without a colon and in the
              range of A to Z.

              If <expC2> is specified then a null ("") must be passed
              as <expC1> if <expN> is less than 8.

              Please refer to the following examples for further
              clarification.

Returns:      A command line from AUTOEXEC.BAT or else a 'Not Found'
              message if the command line specified is not in AUTOEXEC.BAT.


Usage:        The settings in AUTOEXEC.BAT can be checked from
              within an application.

              The function is case insensitive.
              If no drive is specified then the current drive will be
              assumed.

Examples:     ? L_AUTOEXEC(5)              && Result: PATH=C:\;C:\DOS
              ? L_AUTOEXEC(8,'CLP')        && Result: SET CLP=C:\CLIPPER
              ? L_AUTOEXEC(6,"","C")       && Result: $P$G
              ? L_AUTOEXEC(8,"SD","G")     && Result: D:\

Language:     Clipper

See Also: L_CONFIG()

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