简单的文件下载? [英] Simple file downloading?

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

问题描述

我希望用C#编写一个简单的程序,只需单击一下按钮,就可以将指定目录中的所有文件下载到另一个指定目录(使用文本框等).
我搜索了Google,但没有发现任何帮助.我不想打开文件或使用FTP,我只想下载它们(文本文件,图片等)

另外,我应该使用哪个框架?我对大多数应用程序都使用2.0(我认为兼容性会提高),但是我对C#还是比较陌生,并且想知道哪个.NET最适合此应用程序(其他选择是3.0还是3.5 ... )

在此先感谢.

I wish to make a simple program in C# that, in a click of a button, downloads all files in a specified directory, to another specified directory (using text boxes, etc.)
I searched Google, but found nothing helpful. I don''t want to open the files or to use FTP, I just want to download them (text files, pictures, etc.)

Also, which framework should I use? I use 2.0 (increasing compatibility, I guess) for most of my apps, but I''m relatively new to C# and want to know which of the .NETs will suit this app best (3.0 or 3.5 are the other choices...)

Thanks in advance.

推荐答案

2.0很老了.从那时起,已经有3.0、3.5和4.0.话虽如此,我怀疑所有框架都可以正常工作.如果不使用FTP,就无法遍历目录的内容.您要传输文件,而FTP代表文件传输协议.
2.0 is VERY old. There''s been 3.0, 3.5 and 4.0 since then. Having said that, I suspect all the frameworks will work the same. You can''t iterate over the contents of a directory without using FTP. You want to transfer files and FTP stands for File Transfer Protocol.


好,那我该如何使用FTP?
OK, how do I do it with FTP then?


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

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