[英]How to automate - download a file and save it in internet explorer browser using C# .NET?
I am able to download the file which I want to target, but the problem is IE is asking option to open or save it, instead of directly saving it to the folder. 我可以下载要定位的文件,但问题是IE要求选择打开或保存文件,而不是直接将其保存到文件夹。 I want the file(.xls) which I downloaded to be saved in any specific folder. 我希望将我下载的文件(.xls)保存在任何特定的文件夹中。
为什么不使用WebClient.DownloadFile?
@h.munawar - and what the next? @ h.munawar-接下来呢? WebClient.DownloadFile will download file from source to the server, not client machine! WebClient.DownloadFile会将文件从源文件下载到服务器,而不是客户端计算机!
Here is as I'm understand goal is to download file to the client's machine 据我了解,这是将文件下载到客户端计算机的目标
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.