Reading dynamic file name while renaming it

Hi I want to move the file with renaming from one to another but I want to read the file name dynamic.
Ex
I have file in a folder Source
documents.pdf
uipath.pdf
uipathdocuments.xlsx

so I want to move to another folder after renaming with timestamp.
Like I want to move to Folder Destination
It should e like this
11/01/2019 2_30_31 documents.pdf
11/01/2019 2_30_32 uipath.pdf
11/01/2019 2_30_33 uipathdocuments.xlsx

Here I am giving direct timestamp but not the file name
image
Please help.
@Palaniyappan @lakshman @Lahiru.Fernando @KarthikByggari

1 Like

Fine
Use
Out_Filepatharray =Directory.GetFiles(“yourfolderpath”)
Use for each loop and pass the above variable as input and change the type argument as string in the property
—use a move file activity and mention the source path as item and destination path as @balkishan
"yourdestinationfolderpath"+"\"+Now.ToString(“dd_MM_yy_hh_mm_ss_tt”)+"_"+Path.GetFilename(item).ToString

Cheers @balkishan

2 Likes

Thanks @Palaniyappan it’s resolved. :slight_smile:

1 Like

Great
Cheers @balkishan

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.