If your click and download works well for you then you are good,else there is another way to download the file to specific location(subjective) using http request by retrieving the url using get attribute.
Since it is HTML file, use open browser and give the local path (e.g. C:\downloads\xyz.html)
Hi @vvaidya , yes I could click and download file in particular path, but I need to open the file automatically,the file has different name every time its downloaded…
its is html file
This should give the latest downloaded file from your folder, you need to somehow make sure file is completely downloaded then call for the latest file. If this is not empty, use it in Open browser to open your file in a browser.
If you expect html and html extensions
string LatestFile = Directory.GetFiles("MY PATH","*.*").OrderByDescending(Function(d) New FileInfo(d).CreationTime).Where(Function(s) s.ToLower.EndsWith("html") OR s.ToLower.EndsWith("htm")).FirstOrDefault()
if only html
string LatestFile = Directory.GetFiles("MY PATH","*.html").OrderByDescending(Function(d) New FileInfo(d).CreationTime).FirstOrDefault()
Thenks @ClaytonM and @vvaidya , I put the expression in assign activity instead of default value for a variable then can I use open browser activity to open file??
Yeah, just put the file variable in Open Browser. If it doesn’t work, then try using Start Application with iexplorer for the app, and the file variable for argument.