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 Guide To Clipper - <b>curdir()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CURDIR()

Syntax:     CURDIR([<expC>])

Purpose:    To determine the current DOS directory of the specified
            drive.

Argument:   <expC> is the drive letter (A, B, ...).  If omitted, the
            current DOS drive is assumed.

Returns:    A character string.

            CURDIR() returns the current DOS directory of the drive
            specified by <expC>.  If an error has occurred or the
            current directory of the specified drive is the root
            directory, CURDIR() returns a null string ("").

Library:    EXTEND.LIB

Source:     EXAMPLEA.ASM


----------------------------------- Examples -------------------------------

   ? CURDIR("E:")       && Result: null string -- root directory
   ? CURDIR("C")        && Result: FW\CLIPPER
   ? CURDIR("C:")       && Result: FW\CLIPPER
   ? CURDIR()           && Result: null string -- root directory
   ? CURDIR("A")        && Result: null string -- drive not ready


See Also: SET DEFAULT SET PATH FILE()

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