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
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