Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
expr dir(operation[,name]) int operation string name
dir_make (0) | Make directory. Requires the name of
the directory to make. Returns 0 on success.
|
dir_remove (1) | Remove directory. Requires the name
of the directory to remove. Returns 0 on success.
|
dir_change (2) | Change directory. Requires the name
of the directory to go to. Returns 0 on success.
|
dir_current (3) | Get current directory. Returns working
directory.
|
dir_separator (4) | Get directory separator. Returns directory separator character. |
{ char wd[128]; wd = prompt("New directory: "); if (!dir(2,wd)) printf("cwd set to "^^wd); else printf("Invalid directory: "^^wd); ... }