How to rename a file after moving

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 .

Hi @priya_joshi_thaneti,

Use Move file activity to move the one file to another location
For Example :
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



@priya_joshi_thaneti, please see below workflow

Main.xaml (4.4 KB)

1 Like

Hi @arivu96,

how to add name (abc) to the string

i.e., I need something like “abc”“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 .

Hi @priya_joshi_thaneti,

"D:\Arivazhagan\NewFolder2\abc"+datetime.Now.ToString("MM-dd-yyyy hh:mm:ss")+".xlsx"