Allows to create a Windows directory.
Several directories (intermediate and final) can be created at once, if the FullPath option is equal to true.
It will only create the final directory specified into the path, if the FullPath option is equal to false (or absent).
The security descriptor for the directory is inherited from its parent directory.
248 characters max for the directory path.
Syntax
CHGVAR |
VAR(&CMD) VALUE('CREATEDIR') |
CHGVAR |
VAR(&PARM1) VALUE(' Dir="Directory path to create" [;FullPath=true/false] ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
Dir : Complete path of the directory to create.
FullPath: Set to true (default: false) to create the intermediate directories and the final directory, from the path specified via the Dir parameter.
|
RESULT |
Contains eventually error message.
|
Examples
LNCCMD CMD(CREATEDIR) +
PARM1('Dir="C:\temp\test\AURA\result"')
The final directory "result" will be created if "C:\temp\test\AURA" already exists.
LNCCMD CMD(CREATEDIR) PARM1('Dir="C:\A\DV\KAT";FullPath=true')
The "DV" and "KAT" directories will be created with FullPath=true, because "C:\A" already exists.