A good FTP client that needs some improvement...

JumpyNET

Well-known member
Joined
Apr 4, 2005
Messages
151
I have this simple FTP client program. Allmost all the code is from msdn. Its very easy to use and works quite well.

I myself would like to use it to upload several files to different FTP servers simultaneously. Now it only uploads one at a time. Any ideas how this could be done?

Also when the program is uploading it seems like its stuck (cant tamper with the UI or do anything else). I would like to run every upload process in a separate thread (if thats the right word). So that the uploads would run on the background. I think solving this second problem would solve the first problem as well.

Im sure that with a little help from you guys we could make this program a very useful example for all the xtremedotnettalk users. :)
I hope you can help!

The program is made with VB 2005 Express!!
 

Attachments

Last edited by a moderator:
Every time you start a new upload, just start it in a new thread.

[VB]Dim UploadThread As New Thread(AddressOf UploadFile)
UploadThread.Start()[/VB]

This should solve both of your problems. You might want to use delegates or something, depending on how it is built to be able to specify the file to upload, and where to upload it to.

I dont have time to mess with the code otherwise I would download it and edit it for you.
 
Back
Top