Hi Everyone !
Im a newbie to UI path .Could you please help me with the below query .
I have a file named abc.xlsx in folder 1,I would like to move that file to folder 2 with the name abd_currentdate(dd-mm-yyy hh:mm:ss).xlsx
could you please help me with the same .
P.S: Im able to move the file using the move activity , but Im not sure about renaming the file .
arivu96
(Arivazhagan A)
September 28, 2018, 4:55am
2
Hi @priya_joshi_thaneti ,
Use Move file activity to move the one file to another location
For Example :
Properties:
From Path :"D:\Arivazhagan\NewFolder1\Sample.xlsx"
Destination Path :"D:\Arivazhagan\NewFolder2\"+datetime.Now.ToString("MM-dd-yyyy hh:mm:ss")+".xlsx"
For more refer below link
https://activities.uipath.com/docs/move-file
Regards,
Arivu
2 Likes
ak3430
(Anil Kumar)
September 28, 2018, 5:00am
3
@priya_joshi_thaneti , please see below workflow
Main.xaml (4.4 KB)
1 Like
Hi @arivu96 ,
how to add name (abc) to the datetime.now.to string
i.e., I need something like “abc”_datetime.now.Tostring(“MM-dd-yyyy hh:mm:ss”)+“.xlsx”
can we pass it like this
Destination Path : `“D:\Arivazhagan\NewFolder2"+“abc”+datetime.Now.ToString(“MM-dd-yyyy hh:mm:ss”)+”.xlsx"
Thank you @ak3430 ,
I will try it out and let you know in case of any errors .
arivu96
(Arivazhagan A)
September 28, 2018, 5:10am
6
Hi @priya_joshi_thaneti ,
priya_joshi_thaneti:
Destination Path :
"D:\Arivazhagan\NewFolder2\abc"+datetime.Now.ToString("MM-dd-yyyy hh:mm:ss")+".xlsx"
Regards,
Arivu