How to move a folder A to another folder B where a folder B name is dynamic

Hi Developers,
Greetings…!!
I have a automation issue to solve of move a folder A to another folder B where a folder B name is dynamic.

Advance thanks.

@Majunu09

Try below expression in Invoke Code activity.

        Directory.Move(SourceDirName, DestinationDirName)

SourceDirName = “C:\Temp”
DestinationDirName = "C:\Temp"+varFolderName

Hi @lakshman ,
Thank you for the reply. The issue is destination folder is dynamic.
ex: move A to B. next time move A to change as D or Z.

Store that dynamic folder name in variable and then use it in destination

Thank you for the help. I sort it out.


I used for each loop for reading the folder and where my dynamic folder has unique end name so I used it. find that particular folder and move that all folder to it.

Thank you for the reply @ImPratham45 .

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.