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 7 in RPA by Pragati
872 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 7 by Abha
• 24,980 points

Related Questions In RPA

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 13 in RPA by Anvi
• 13,400 points
2,206 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 in RPA by Pratibha
• 3,360 points
212 views
0 votes
1 answer
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
344 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,071 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
528 views
0 votes
1 answer

Private Chrome window open UiPath

To open the browser in private mode, ...READ MORE

answered Apr 25, 2018 in RPA by wrecker
• 3,110 points
419 views
0 votes
1 answer

How to move folders containing Json and Images files to another folder in uipath?

Hey Akshay, you can check this thread ...READ MORE

answered Jun 3 in RPA by Abha
• 24,980 points
97 views
0 votes
2 answers

Moving Files from one folder to another using UiPath

if you want to copy and move ...READ MORE

answered May 29 in RPA by Venkat
• 320 points
1,988 views