How to download all files from a shared folder using UiPath?

Downloading all the files from one folder and store that folder to another folder

1 Like

Hi @Adhu_4

You can get all the files available in a folder using

This will get all the file paths to an array
Now use a for each loop to loop through the array
Within it, use move file activity and give the source and destination paths to move it :slight_smile:

1 Like

Hi Buddy @Adhu_4

Kindly follow the below steps that could help you resolve this issue
–use a assign activity and mention like this
arr_folderpath = Directory.GetDirectories(“your folder path”)
where arr_folderpath is a variable of type string array
for more info on this method

–use a for each loop and pass the above variable as input and change the type argument of for each loop as string in the property panel
–then inside the for each loop use a activity called Move activity and mention the source file path property as item (the variable from the for each loop which has the file path of each folder in the parent folder) and mention the destination as place where you want to paste those folders

Thats all buddy you are done
kindly try this and let know for any queries or clarification

Cheers @Adhu_4


Please check below thread and download this package and then go to Manage packages and install this package.

For this Activity, just provide source and destination folder names to move files from source to destination. And also if you want to particular files then Specify file types like “xlsx” or “PDF” under TypeOfFiles property and it’s optional field. If you want to move all files then no need to specify any thing here.