Create Directory Command: createDirectory
The createDirectory command generates a new folder at a specified location within an automation workflow. This helps organize files, structure data storage, and ensure required directories exist before performing file operations.
Example: Suppose you want to create a folder named NewReports inside C:\Documents.
Steps to configure:
- Select Run Utility Commands from the Action dropdown.
- Leave the Screen and Element Key fields blank.
- Edit the parameter section and click on Form to open the configuration window.
- Select Functions from the dropdown, then choose File handler Functions as the function.
- In the Cmd field, select createDirectory.
- Provide the full directory path, including the new folder name (e.g., C:\Documents\NewReports).
- Click Save.


Outcome:
- The system creates a new folder named NewReports at the specified location (C:\Documents).
- If the folder is successfully created, the process continues; if not, the automation stops with an error.