FTP in a Metro App

2019-02-15 07:09发布

问题:

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

回答1:

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



回答2:

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!



回答3:

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#