Trying to copy a file from source to destination using Invoke method by passing to arguments Source and Destination paths as string.
In Invoke method (the fields i entered)- In the parameters i passed two argument Source and Destination paths as string.
Target Type:System.IO.file
Target Object: File.Copy(Source,Dest)
Method Name: Copy
did u get the solution for this??
Nope
May I know the reason why we are not supposed to use the Copy File Activity.
If you able to get the fileinfo datatype of the files need to copy then you can try with the following copyto Method.
Here zipFile is the System.IO.FileInfo datatype.
zipFile.CopyTo(strDesktop+ Path.GetFileName(zipFile)).ToString
1 Like