Help Centre › Building Processes
This article describes the RPA File functionality to test if the file is password protected.
For a full list of available functions, please read FILE functions.
Description
The FILE Test if the file is password protected function allows you to test if the file is password protected.
Setting it up
To use the FILE Test if the file is password protected function, follow these instructions:
{{popups:rpas/add:action=file-is-password-protected}}
Once on a process map:
- Navigate to the process where you would like to add the FILE Test if the file is password protected function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the FILE Test if the file is password protected option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File | Yes | Text | - | The path to the file |
| Variable | Yes | Text | - | Variable to store the result (true/false) |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Boolean | True if the file is password-protected |
Errors
| Error | Description |
|---|---|
| File not found | The specified file does not exist |
Tips
- Check before attempting to open encrypted files