Put files into a specific share drive

I have a bunch of files and they each need to go to a specific share drive. What activities would I use to put those files into the specific share drive that I want it to put. There are more than one share drive.

1 Like

Hi @Pranav_KomandurPK
As you have multiple files you would firstly need the file path of all the files. If they are in the same folder, please use Directory.GetFiles() which returns a 1-dimensional array of files paths for all the file in the folder.

Then you have to use a for-each activity to iterate through all the file paths and then use Copy/Move activity to put the files in the shared drive.

Note: You cannot copy/move the entire folder. If that is your requirement please Create a new folder in the desination before copying.

1 Like