[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DIRMAKE()
 Creates a directory
------------------------------------------------------------------------------
 Syntax

     DIRMAKE(<cDirectory>) --> nErrorCode

 Argument

     <cDirectory>  Designates the directory name to create.

 Returns

     DIRMAKE() returns a 0 when it has successfully created the directory;
     otherwise, an error code is passed.  The codes are defined as follows:

     Table 7-3:  DIRMAKE() Error Codes
     ------------------------------------------------------------------------
     Code    Symb. constants     Definition
     ------------------------------------------------------------------------
      0      NO_DISK_ERR         No error occurred
     -2      ER_FILE_NOT_FOUND   File not found
     -3      ER_PATH_NOT_FOUND   Path not found
     -5      ER_ACCESS_DENIED    Access denied (e.g., in network)
     ------------------------------------------------------------------------

 Description

     When you install the program, directories must be the first thing you
     create.  The DIRMAKE() function allows you to create new directories
     from within your CA-Clipper application.

 Note

     .  <cDirectory> can contain a drive designator and a path,
        wildcards are not allowed.

 Examples

     Change to the "\DATA" directory:

     IF DIRCHANGE("\DATA") == -3         // Path not found
        DIRMAKE("\DATA")
     ENDIF


See Also: DIRCHANGE() DIRNAME() DIRREMOVE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson