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).

Note 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 not allow local file system access, you cannot use this step with File Access set to Direct Access on the local device. However, it can be used on the local device with File Access set to Via RFS. On a remove device, both options, "Direct Access" and "Via RFS", can be used at all times.

Properties

  • Device: Select the reference name to use. This reference name is specified in the Required Devices property of the Call Desktop Automation 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.