如何将文件下载到特定文件夹? [英] How to download a file to a specific folder?

查看:294
本文介绍了如何将文件下载到特定文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将文件下载到特定的文件夹。我使用 WebClient.DownloadFile ,但我想是让用户选择在哪里,这个文件将被保存,而不是下载到任意文件夹中。

I want to download a file to a specific folder. I'm using WebClient.DownloadFile, but what I would like is to let the user select where this file would be saved, not just download it into any folder.

我怎样才能做到这一点?

How can I do this?

推荐答案

这是用户将下载到将取决于他们的浏览器中的文件的文件夹,和系统设置。

The folder that the user would download the file to would depend on their browser, and system settings.

所有你能做的就是提供下载的文件,这将是由他们(和他们的浏览器)选择本地文件夹(在其系统上)。

All you can do is provide the file to download, and it would be up to them (and their browser) to select a local folder (on their system).

如果你想控制这个过程中,你将不得不使用如Java,Silverlight的,Flash等嵌入式插件。

If you want to control that process, you would have to use an embedded plugin like Java, Silverlight, Flash, etc.

这篇关于如何将文件下载到特定文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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