Copy file

Description

Copies a content of one file to another or downloads a file from the specified URL. Both HTTP and FTP protocols are supported. If you copy to a file that doesn't exist, then the robot will create a new file automatically.

Parameters

Copy from the file

  1. Set a value: enables you to directly write the file path or the download link. For example,

    C:\tmp\table.xlsx, https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png, ftp://login.password@address.

  2. Save the previous step result: chooses the previous activity result as a path or a link.

  3. Calculate a value: enables you to use available properties and methods to form a path or a link.

Path

  1. Set a value: enables you to directly write the destination (including the file name and extension) where to copy or download the file. For example, C:\tmp\new_folder\new_table.xlsx.

  2. Save the previous step result: chooses the previous activity result as a path.

  3. Calculate a value: enables you to use available properties and methods to form a path.

Comment

Contains an annotation to the activity. The input text will be displayed above the activity name.

Usage Examples

This activity may be your choice if you need to keep some content of a file but then make some manipulations with the content, save it and then compare. In this case you will need to copy the content to a new file, read the new file, process the content, overwrite the new file and then compare both files.