FILE Test if the file is password protected function

The FILE Test if the file is password protected function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the FILE Test if the file is password protected function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FILE Test if the file is password protected option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
FileYesText-The path to the file
VariableYesText-Variable to store the result (true/false)

Output variables

VariableTypeDescription
VariableBooleanTrue if the file is password-protected

Errors

ErrorDescription
File not foundThe specified file does not exist

Tips

  • Check before attempting to open encrypted files

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.