Copy directory to another directory

studio

#1

Hi,

Can you help me guys, I want to copy a directory to another directory.
Sample:

I have a directory “C:\Users\username\Desktop\Data” so this directory have a folder and subfolders and files within it.
What I want to copy this to another directory like “C:\Users\username\Documents\Data”, so I want to copy all the data from this folder to another but if the folder/file is existing it won’t copy the file but if there’s folder existing folder/subfolder on the destination directory it will create the folder and copy the files.

Thanks


#2

I am not clear what you want, my understanding is you want to replicate, you may have to use recursive logic for that.


#3

If you want to copy the file only then see this link How to copy excel file to other folder?


#4

@Jaycee_Salvador,

Try this post,


#5

Thanks guys to all your reply but I already found a solution

I use Invoke Code activity and have this code
image