# MAKEDIR()

Create a new directory

Syntax

  MAKEDIR( <cDirectory> ) --> nError

Arguments

  <cDirectory> The name of the directory you want to create.

Returns

  <nError> 0 if directory was successfully changed, otherwise the number of the last error.

Description

  This function attempt to create a new directory with the name contained in <cDirectory>.If this function fail, the it will return the last OS error code number.See FERROR() function for the description of the error

Examples

          cDir:= "Temp"
          If (MAKEDIR( cDir)==0)
              ? "Directory ",cDir," successfully created
          Endif
    Tests
          See examples

Status

  Ready

Compliance

  This function is CA Clipper 5.3 compliant

Platforms

  All

Files

  Library is rtl

See Also

- DIRCHANGE()
- DIRREMOVE()
- ISDISK()
- DISKCHANGE()
- DISKNAME()
- FERROR()