FTP in a Metro App

2019-02-15 06:53发布

I'm trying to create an FTP Application in Metro and C# but the FTP class in System.Net has been removed and now I can't figure out how to do this. I've looked into the BackgroundUploader but can't understand how I can bring back directory structures etc.

Does anyone have any experience doing this, I know it is achievable since there is an app already available on the Windows Store.

Thanks

3条回答
淡お忘
2楼-- · 2019-02-15 07:03

Take a look at http://www.dreamincode.net/forums/topic/35902-create-an-ftp-class-library-in-c%23/. It's a C# implementation of a FTP client using sockets, unless you have advanced requirements this may be sufficient for you.

And if you need more you could Always expand on his example!

查看更多
Bombasti
3楼-- · 2019-02-15 07:23

Please have a look at this sample below. The difference from the Microsoft sample is the use of sockets: - Windows 8.1 Sockets: Ftp Client Sample in C#

查看更多
4楼-- · 2019-02-15 07:25

I haven't checked it yet, since I just started to look for it. In this article they're sharing an FTP sample in C#.

http://code.msdn.microsoft.com/windowsapps/CSWindowsStoreAppFTPDownloa-88a90bd9

Regards, Herb

查看更多
登录 后发表回答