Set Folder
The Set Folder action sets the current working directory of your process to the folder specified. All references to a relative path will start with the selected folder. Any relative paths you use afterward will be resolved against this directory. When run, this action changes the default location that methods like File.Open("myfile.txt") or Directory.GetFiles(".") refer to. It only affects the current process, not the whole system; other processes running on the machine are not impacted. If the folder specified doesn’t exist, you will receive a DirectoryNotFoundException error.
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
Create a Set Folder action
-
In Nintex Bot, on the Actions list, click Files and select Set Folder.
-
Browse to or enter a Folder location. Optionally, click the Magic Wand to use the Expression Builder.
-
If needed, adjust the Run error task settings to fine tune how the action runs.
- Run error task: A botflow containing an error task automatically runs the error task in the event of an error. If the botflow does not contain an error task, the botflow stops in the event of an error.
- Stop on error: The botflow stops in the event of an error.
- Ignore errors: The action is skipped in the event of an error and the botflow attempts to execute the next action.
-
(Optional) Add a Note to document special instructions or functionality.
-
Toggle the run switch to Run and click OK to execute and save the action.
Note: The run switch is set to Run by default. To create or modify this action without executing it, click the slider to change the option to Don't Run. For more information, go to Action Builder.