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

Syntax:     DIRMAKE(<expC>)

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

Returns:    A numeric value.
            0 is returned if the new directory is created, 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:      This function allows you to make new directories when
            installing new applications written in Clipper, completely under
            program control.  This removes the need to write complicated
            batch files to install software.

Notes:      A drive designator and a path name may be used in the
            name of the <expC> directory.

Library:    CT1.LIB


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

Examples:   * The "\DATA" directory will be set up if
            * it does not exist.  DIRCHANGE() will check
            * whether it already exists.
            IF DIRCHANGE("\DATA") = -3
               DIRMAKE("\DATA")
            ENDIF




See Also: DIRCHANGE() DIRNAME() DIRREMOVE()

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