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 !
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
Yes, you can try this strVar.Replace(“P1“,“”).Replace(“P2”,“”).Replace(“P3”,“")
Kindly refer below article it might helps you for Rename the folder
Thanks you ! I have used the move methode with thes replace arguments.
It’s work. thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.