cancel
Showing results for 
Search instead for 
Did you mean: 

Move the entire file contents of one directory to another

LisaMartino1
Level 3
Hello,
I was wondering if anyone has come across a solution to move the contents of file directory A to file directory B.  My example will have 50 files to move with unknown file names at run time.

I have done some searching but I am only coming up with the Utility file management - move file with a loop but without know the file names this won't work for my automation.

Many thanks in advance for any input.


------------------------------
Lisa Martino
------------------------------
2 REPLIES 2

Hi Lisa,

You should not need to know the file names to use the File Management utility.

First use the Get Files action to get a list of all of the files in a given folder. For the patterns input, "*.*" will return all files, or you can limit to only certain file types, such as "*.pdf, *.xls," etc.

That action will generate a Files collection that includes the file paths for each file. Use the file path as the input for the Move File action, with Destination Path to designate where you want to move the files.

------------------------------
Patrick Aucoin
Senior Product Consultant
Blue Prism
------------------------------

Thank you for your response, this worked!!!

------------------------------
Lisa Martino
------------------------------