Equinox Online Help - Language Reference - A to Z
MakeDirectory |
|
|---|---|
| Applies to | ![]() |
| Syntax | MakeDirectory DirSpecExpression |
| Action | [Statement] Creates a new directory path. |
| Scope | Usable anywhere. |
| Notes | This statement creates a new directory with the path specified by DirSpecExpression. All elements of the path are made if they do not exist. In order to make a directory on the server, prepend "SERVER:" (in any case) to the DirSpecExpression. This prefix is ignored by the single user version. If the DirSpecExpression is a relative one, it will start from the program directory - the Eqserver.exe directory for server files, and the Equinox.exe or Equinet.exe directory for everything else. The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero. |
| Category | File IO |
| See Also | ChooseFile, FileDelete, FileDetails, FileExists, FileHandle, FilePath, FileRename, FileSearch, FileSearchNext, RemoveDirectory |
| Example | This example creates a new directory on the C: drive. MakeDirectory "C:\TESTDIR" |
