C5_DIRMAKE

 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.