ProvideX V8.20 > Language Reference > 2. Directives
90
DIRECTORY Directive
          Create Subdirectory
Format
DIRECTORY name$[,ERR=stmtref]
Where:
name$
String variable contains the name of the directory to create.
stmtref
Program line number or label to transfer control to.
Description
Use the DIRECTORY directive to create a directory in the operating system's file
structure.
WindX supports the use of this directive via the [WDX] tag; e.g., DIRECTORY
"[WDX]somefile.ext"... For more information, see [WDX] Direct Action to Client
Machine, p.797.
Examples
0010
DIRECTORY
"DATA"
0020
DIRECTORY
"WRK."+STR(DEC($00$+GID))
0030
DIRECTORY
"/tmp/WRK1"
0040
DIRECTORY
"/tmp/WRK1/WRK2"
Note: A subdirectory can only be created within an existing directory; therefore, WRK1
must exist in order to create WRK2.