Hello !
Happy new year to evrybody ^^
I need your help to rename folders in Uipath
My flders are type as donald Mickey P1 / Donald Daosy P2 / Donald Pluto P3
And i want to rename it to delete P1, P2 and P3 in the name folder
to do => Donald Mickey / Donald Daisy / Donald Pluto
Do you think that is possible?
I think about replace P1 and P2 and P3 by ββ
Thanks you !
1 Like
jack.chan
(Jack Chan)
2
Hi, you can do somehting like this

- oldfoldername = original folder name e.g, D:\donald Mickey P1
- newFoldername = oldFolderName.Replace(βP1β,ββ)
- use invoke method
- TargetType = System.IO.Directory
- MethodName = Move
- parameters = oldFolderName and newFolderName variables
Hello @manu_debonne,
Yes, you can try this strVar.Replace(βP1β,ββ).Replace(βP2β,ββ).Replace(βP3β,β")
Cheers
@manu_debonne
1996
(Neelima G)
4
Hi @manu_debonne,
Kindly refer below article it might helps you for Rename the folder
Thanks,
Neelima.
Thanks you ! I have used the move methode with thes replace arguments.
Itβs work. thanks
system
(system)
Closed
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.