Drive Exists
The Drive Exists action determines if a mapped drive exists on the computer. The action searches the local machine to determine if there is a drive with the letter supplied by the action's properties.
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
Create a Drive Exists action
-
On the Actions list, click Files and select Drive Exists.
-
Select a drive Letter to search or enter up to three characters for the drive letter (for example, C:\ or C: or C). Optionally, click the Magic Wand to use the Expression Builder.
-
In the Save to field, navigate to where you want to save the action's True or False value. 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.
When the action is executed, Nintex Bot first checks the drive letter to ensure that it is A-Z case insensitive and then it appends the colon and/or slash, if it was not provided. Nintex Bot then gets the drive information from the system and compares it to the drive name. If the drive is found, it will return a True value; if it is not found, it will return a False value. Even if the drive exists, it still may not be visible in File Explorer.