Directives
DIRECTORY Create Subdirectory
   
Format DIRECTORY name$[,ERR=stmtref]

Where:

name$ String variable contains the name of the directory to create.
stmtref Program line number or statement label to which to transfer control.
   
Description Use the DIRECTORY directive to create a directory within the operating system's file structure.


*Note* WindX supports the use of this directive via the [WDX] or [LCL] tag; e.g., DIRECTORY "[LCL]somefile.ext"... If you are running an version of ProvideX older than V5 on a WindX PC, you still need to encapsulate the command in an EXECUTE "[WDX]..." directive. See [WDX] Direct Action to Client Machine.


   
Examples 0010 DIRECTORY "DATA"
0020 DIRECTORY "WRK."+STR(DEC($00$+GID))
0030 DIRECTORY "/WORK/WRK1"
0040 DIRECTORY "/WORK/WRK1/WRK2"


*Note* A subdirectory can only be created within an existing directory; therefore, WRK1 must exist in order to create WRK2.