Move all subfolders of a folder to another folder


Hello friends,
I should move all the sunfolders positioned in a folder “D:\Disdette_Outlook\immagini”
in another folder.
How can I move all the subfolders in another folder?
let From folder be Y, To folder be Z
move each subfolder in Y to Z
Thank you so much.

camilla :slight_smile:


you can use command prompt if possible.


Have you tried Directory.Move method?


Thank you so much @Bharat.
Can you please me attach an example of application of the activity Directory.move?
Thank you so much,



You can refer this link.

I have created a sample (2.2 KB)


Thank you so much @Bharat.
I tried to download the your zip but it shows me this message

can you please reattach it?
thank you so much,
Camilla :slight_smile:


I have reattached the file and edited the previous reply or you can download it from (3.3 KB)



Refer this one


@Bharat If the destination folder is already present than it shows error


Thank you so much @Bharat.
It works perfectly but in case the destination folder is not already present.
I should make it work in case the destination folder is already present.
Can you please help me?
Thank you so much,
Camilla :slight_smile:


can you please share the sample workflow… i have same requirement

thanks in advance