I am downloading a file from a site. When we download it gives a Save As window. I can provide the folder path but i don’t know the downloading file name. And i want the file to be saved as its default name.
So when i pass the file path in to save as window i can only provide the folder path, not the file name. So how to do this ?
According to my chrome setting it won’t go to download folder. It will ask the user to give the folder. And currently i don’t want to change my chrome setting. If I download to the download folder directly, then there is no issue.
So you can use datetime in that
Say If file name for now is 16012020151412.xlsx
i.e. ddMMyyyyHHmmss
Then You can use "D:\Uipath\"+Date.now.Tostring("ddMMyyyyHHmmss")+".xlsx"