I have a text file on desktop and wanted to copy into a folder located D drive. This process can be automated by using File>CopyFile component.
1.Go to the Component ToolBox panel, click Icon Utilities.
2.On Utilities category drop-down menu, click File and then drag CopyFile component onto the Designer Surface.
3.Double click Sourcefilepath data In-port property and enter the path of source file.
4.Double-click destFilepath data In-port property and enter the path of destination file.
5.Double-click overwrite and enter “True” or “False”.
i.True will replace the old file to new file.
ii.False will add a duplicate file.
6.Connect the Control In/Out ports between the components right from Start to End components.
7.Press F5 key to run the activity.