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

     DIRMAKE(<cNewDir>) --> nSuccess

 Arguments

     <cNewDir> is the name of the directory to be created, including an
     optional drive.  If you do not specify a drive, the current one is used.

 Returns

     DIRMAKE() returns 0 if successful; -1 if there is an argument error.
     Otherwise, DIRMAKE() returns the DOS error code.

 Description

     DIRMAKE() creates a specified directory.  Note that first you must have
     sufficient rights to create a directory.  To create nested
     subdirectories, you must create each subdirectory separately, starting
     from the top-level directory that you want to create (see example
     below.)

 Examples

     .  This example assumes that C:\TEST exists and uses DIRMAKE()
        twice to create a nested subdirectory under it:

        DIRMAKE("c:\test\one")    // Create top-most one
        nResult := DIRMAKE("c:\test\one\two")
        IF nResult != 0
           ? "Cannot make directory, DOS error ", nResult
           BREAK
        ENDIF

       You may also use something like this:

        DIRMAKE( ".\test" )

 Files   Library is EXTEND.LIB.


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