Topic Thread

Expand all | Collapse all

Move the entire file contents of one directory to another

  • 1.  Move the entire file contents of one directory to another

    Posted 06-22-2020 18:06
    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.  RE: Move the entire file contents of one directory to another

    Posted 06-22-2020 19:43
    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
    ------------------------------



  • 3.  RE: Move the entire file contents of one directory to another

    Posted 06-22-2020 22:06
    Thank you for your response, this worked!!!

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