No, there is no command to create directories. UltraEdit is a text editor and not a file manager. However, you can do this if you first configure a user tool in Advanced - Tool Configuration with following parameters:
On tab Command:
Menu Item Name: Create Directory
Command Line: md %sel%
Working Directory: let it empty
Toolbar bitmap/icon (file path:) file name of an appropriate *.bmp or *.ico file or let it empty
On tab Options:
Program Type: Dos Program
Save Active File: unchecked
Save all files first: unchecked
On tab Output:
Command Output: Append to Existing
Show DOS Box: unchecked
Capture Output: unchecked
Replace selected text with: No Replace
Now you can use in your script:
UltraEdit.newFile();
UltraEdit.activeDocument.write(String variable with the directory to create);
UltraEdit.activeDocument.selectToTop();
UltraEdit.RunTool("Create Directory");
UltraEdit.closeFile(UltraEdit.activeDocument.path,2);
Because you need to run the tool to create the directory several times, it would be better to create the new file first, remember its document index, make this temporary file active before writing the directory path into it and calling the user tool and finally close the temporary file before exiting the script.
// Somewhere at start of your script:
nTempFileIndex = UltraEdit.document.length;
UltraEdit.newFile();
// Whenever you need to create a directory:
UltraEdit.document[nTempFileIndex].setActive();
UltraEdit.activeDocument.selectAll();
UltraEdit.activeDocument.write(String variable with the directory to create);
UltraEdit.activeDocument.selectToTop();
UltraEdit.RunTool("Create Directory");
// Somewhere at end of your script:
UltraEdit.closeFile(UltraEdit.document[nTempFileIndex].path,2);
Note: It is important that the temporary file is the active file before calling the user tool. %sel% is replaced always by the selected text in the active document only.
Best regards from an UC/UE/UES for Windows user from Austria