Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>dirmake()</b> http://www.X-Hacker.org [<<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()

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