Write File

The Write File step writes data from a binary variable to files on a local or remote desktop. You can use this step to write to a file on the Robot File System (for an example, see the Kofax RPA Administrator's Guide).

To enable file system access, including access to the local file system in the Local Desktop Automation mode, select the Allow File System and Command Line Access option on the Security tab in the RoboServer Settings application.

If your RoboServer is configured to forbid local file system access, the robot can run, but it produces an error if the step uses File Access set to Direct Access on the local device. However, the step can work on the local device with File Access set to Via RFS. On a remote device, both "Direct Access" and "Via RFS" can be used at all times.

The Write File step belongs to the File System and Output categories.

Properties

Device
Select the reference name to use. This reference name is specified in the Devices property of the Call Robot step.
Contents
Specify a value to write to a file. You can specify a variable name in this field.

For example, when you write to a file on a robot file system, the field can contain the value ="data".binary("utf-8"), where "data" is the string written in the file. The file content must be binary.

File Access

Specify how the file must be accessed.

To write to a file on the specified local or remote device, select Direct Access.

To write to a file on a robot file system, select Via RFS.

File Name

Specify the path to the file to which the data is written.

For example, to write to a file on a robot file system, the path must start with the configured file system name and can be similar to the following: myshare/myfile.bin

The file system name to use must correspond to that specified in the Robot File System section in the Management Console.