Download and rename in some Format

Hi Guys,

I have to download CSV file from browser, and have to rename it as (MyName+today date+ time).

Can someone please help ASAP.

@Shubh_k

use rename file Activity for performing this task.

@Shubh_k

Use this screenshot:
image

Yes, But in “Raname” Activity, we need to provide the file name. which will download.
But I am finding difficulties in that to select the file, coz without download I can not select.\

@Shubh_k

you can use the filter for finding the latest downloaded file in your folder.

@Shubh_k

Use this expression :

“vaibhav”+(Cdate(Now.ToString).ToString(“dd”)+Cdate(Now.ToString).ToString(“hh:mm:ss”)).ToString.Replace(“:”,“”)+“.xlsx”

Hi Shubh,

while you are downloading or saving that attachment use variable which store path of that file.
Then use substring and change the name accordingly.

Best Regards,
Sagar Rana

Hi @Shubh_k

Use the activity wait for download and take the output variable(eg:csvfile) from that and use it in Rename file activity and give the input as csvfile.fullname.

It will work for 100%

If you are using chrome then go to setting> Advanced>Downloads> enable s ask ask where to save window

then after give the required file path in the save as window appearing when downloading the same