从system.net.webclient.downloadfile下载文件路径 [英] Download File Path from system.net.webclient.downloadfile

查看:451
本文介绍了从system.net.webclient.downloadfile下载文件路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



何时将下载的文件存储在系统上的什么位置

使用System.net.webclient.download文件吗?

有默认位置吗?

感谢

Hi,

Where is the downloaded file stored on the system when

System.net.webclient.downloadfile is used ?

Is there any default location ?

Thanks

推荐答案

好,MSDN说这是WebClient.DownloadFile方法的签名:
Well MSDN says that this is the signature of the WebClient.DownloadFile method:
public void DownloadFile(
    string address,
    string fileName
)



MSDN上的示例指出该文件已存储在Application.StartupPath文件夹中.请参阅页面底部的此处: WebClient.DownloadFile [



The example on MSDN states that the file gets stored in the Application.StartupPath folder. See here on the bottom of the page: WebClient.DownloadFile[^].

Best Regards,
Manfred


这篇关于从system.net.webclient.downloadfile下载文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆