Write File

Use the Write File activity to write content into a file that resides on a remote Microsoft Windows machine.

Note: To ensure that this activity properly executes, verify that the Remote Registry service is enabled on your machine.

Usage

Complete the following properties to use this activity:

  • Windows - Specify the following information or click the Variable Reference icon to choose a variable:
    • File Name - Enter the full file path including the name of the file where the contents will be written. For example: C:\Users\Default\Documents\mydocument.docx.
    • File Content - Enter the contents to include in the file.
    • Encoding - Click the drop-down menu and choose the encoding class for the file from the drop-down list:
      • ASCII - An encoding for the ASCII (7-bit) character set.
      • UTF-16 - An encoding for the UTF-16 format using the little endian byte order.
      • UTF-32 - An encoding object for the UTF-32 format using the little endian byte order.
      • UTF-7 - An encoding for the UTF-7 format and is less robust and secure than UTF-8, UTF-16, or UTF-32.
      • UTF-8 - An encoding for the UTF-8 format.
    • Options - Click the drop-down menu and choose the appropriate action to take when saving the file:
      • Append to Existing File - If a matching file already exists, append the new content to the existing file.
      • Do Not Overwrite if File Exists - If a matching file exists, do not write to the file.
      • Overwrite Existing File - If a matching file exists, overwrite the file with the new content.