How to move all files from Source to Destination Folder in UiPath

0 votes
I want to move all the files from a source folder to a destination folder using UiPath, please tell me how can I do that?
Mar 8, 2019 in RPA by Pragati
• 7,201 views

1 answer to this question.

0 votes

Hi Pragati, in order to move files from a Source folder to a Destination folder, follow the below mentioned steps one by one:

1. Create a Sequence and create the variables NumberOfFiles and SourcePath. Now assign the default value of SourcePath to the Path of Source Directory.

2. Now add an Assign activity and assign the NumberOfFiles to directory.GetFiles(SourcePath). This will fetch all the files from the source path.

3. Then drag a For Each activity and write item & NumberOfFiles in "ForEach" & "in" textfields respectively. Also, go to the Properties of For Each activity and mention String in the Type Argument.

4. Finally in the Body section of ForEach activity, add Move File activity and mention the Destination Path in the Destination section of Properties of Move File activity. Also, in the properties tab, go to From section and set item as Path.

5. Now, just run the program and you will see that all your files are moved from Source to the Destination folder.

answered Mar 8, 2019 by Abha
• 28,140 points

Related Questions In RPA

0 votes
1 answer

How to move files from source to destination folder in Blueprism?

Try this approach. It creates a new ...READ MORE

answered Mar 20, 2020 in RPA by liana
• 5,411 views
0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 14, 2019 in RPA by Anvi
• 14,150 points
• 11,925 views
0 votes
1 answer

How to scrape data using Get Text from UI Automation tools in UiPath?

Hi Roshni, scraping any text from a web page ...READ MORE

answered Mar 20, 2019 in RPA by Pratibha
• 3,690 points
• 3,728 views
0 votes
1 answer

Want to automate in Linux server to move the files whenever data is dump in source location to another server uisng UIpath

Check this out https://www.uipath.com/kb-articles/automating-t ...READ MORE

answered Aug 10, 2020 in RPA by Karan
• 19,550 points
• 2,298 views