Robot download file from browser automatic and then its downloaded file put in specific folder

hello,

i have create one automation in that automation RPA boat download some company file from company website and then that downloaded file move to one specific folder.

but i have one problem i am not able to give particular files name in move file activity path…because all time robot downloaded file name different. so can you say which type i can solved this problem?

Hi @rAE_rAS,

There are many ways to do this.

1-You can set the browser you are using to ask for a file path for the downloaded.
2-First clean the download folder. Then name it using the file copy activity after each download.

These methods can be replicated.

Regards,
MY

@rAE_rAS file download same folder right everyday if yes bot will delete old files in that folder then download the file in that folder after downloading your having only file in that folder then use blow syntax

Directory.GetFiles(“Folderpath”)(0)

No… Bro… Download folder empty not possible because in those so many file available and that is company decision.

Delete all file is not possible

Hi @rAE_rAS try this once

In Assign activity :

String.join(“”, directory.getfiles(filepath,“*”,searchoption.all directories).orderbydescending(function (d) new fileinfo(d).creationtime).take(1))