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

Syntax:     DIRCHANGE(<expC>)

Arguments:  <expC> denotes the name of the directory to change to.

Returns:    A numeric value.
            0 is returned if it is possible to select the directory, otherwise
            an error code is returned.

            Code        Definition
            ----        ----------
              0         No error arisen
             -3         Access path not found
             -5         Access refused (e.g., on a network)

Usage:      It is possible to change the actual directory, or to check
            whether a directory exists.  DOS error messages are
            intercepted (see also DIRMAKE()).

Notes:      A drive designator and a path name are allowed
            but not wildcards.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Changing to the subdirectory "DATA"
            IF DIRCHANGE("\DATA") = 0
               ? "Actual directory is now: "+DIRNAME()
            ENDIF



See Also: DIRMAKE() DIRNAME() DIRREMOVE()

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