How to Copy And Paste my Excel File

Hi! It can be a simple question but i cannot solve it by using “Copy File” Activity.

I want to Copy “The Excel File I want to Copy.xlsx”

and paste it to this folder like this. So the thing i want to do is copy the Excel File, paste it to this foler and change the name.

Hope you have a good day :slight_smile:

Hi @goag2413,

Are you getting any error while copying?

  • Copy File Activity:
    • From: C:\Original\Original.xlsx
    • To: D:\NewFolder\New_Excel.xlsx

Also, please watch below video and see if that’s what you are doing?

Regards
Sonali

1 Like

Hi @goag2413,
Use copy file activity provide the source path and destination path

Regards,
Arivu

1 Like

Watch below clip recorded and see where it is failing. It is working fine while using Copy File activity

ForumCopyFile.zip (8.1 MB)

1 Like

Hi @goag2413

Use “Invoke Method” with:

  • Target Type: "System.IO.File"
  • Method Name: "Copy"
  • Arguments:
    1. "C:\SourceFolder\Excel File want to Copy.xlsx" (Source)
    2. "C:\DestinationFolder\NewFileName.xlsx" (Destination)
1 Like