cancel
Showing results for 
Search instead for 
Did you mean: 

Move files

DavidAssouline
Level 4
Dear all, I would like to move all the files present in one folder to another folder. With the File Management VBO, I've used "Get files" to get the files from the folder. Then, I chose create another action to "move file" but I can specify there only one file path. Could you please tell me how to move all the files and not one? Thank you, Best regards David
5 REPLIES 5

SarahRobert
Level 2
you can specify folder Path followed by * - Wildcard to send all files at the same time.

Venkataratna_Gi
Level 2
David - Using a simple Code Stage this can be achieved. (make sure you add System.IO in namespace imports under code options of your intialise page of the object) Code stage source below:(VB). * Once this operation is done you no longer will have the Source. Target is the new folder which will be created by the operation. dim source1 as string = Source dim target1 as string = Target Directory.Move (source1,target1) Send Source and Target as inputs to code stage Hope it helps. Cheers - Giri

DavidAssouline
Level 4
@Sarah: Thank you!! It works if I want to move all the files from one folder. But basically, if I have multiple sub-folders and I want to move all the files from each folder to the main folder. Is there a command for that? @bvrgiri: Yes I thought about coding but I've never done it with Blue Prism. I can't find the code option to to add the system.io, could you please specify where it is? Thank you both !!

DavidAssouline
Level 4
Anyone can help? Thanks !

John__Carter
Staff
Staff
Code options are on the object Initialise page, inside the page details box.