Move a Folder to another folder

Hi, can u assist me on how to move A folder into another folder. A folder not files alright.

I have this one folder “C:\Folder\Chicken” and “C:\Folder\Animals”
I want to move the “Chicken” folder into the “Animals” folder including all the file in the “Chicken” folder.

I already tried using the invoke method and Invoke codes but unsuccessful. Can u assist me further

HI @ainaasyhda

You can try with Move folder activity

Have a look on the documentation

Regards
Gokul

1 Like

Thank you. However currently im using the old version due to uipath license and dont have move folder, only have move file. anyway thank you sir

HI @ainaasyhda

Can you share the version of the Uipath studio.

Update the Uipath.system.Activities you can find the Move folder activity.

Regards
Gokul

Hi @ainaasyhda

Have a look on the thread

Regards
Gokul

Hi

  1. I tried invoke method, TargetType: Microsoft.VisualBasic.FileIO.FileSystem & MethodName : MoveDirectory. however it will only move the files in “Chicken” folder into the “Animals” folder. It dindt move the folder but the files only.

  2. Invoke method, TargetType: System.IO.Directory & MethodName : Move. isnt It will rename the folder name only ?
    image
    image
    image
    image

Please advised, Thanks

have a check on the filters
grafik

have look here:

maybe with a rerun the exception occured as the directory already exists, created by a previous run.