Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I have this simple FTP client program. Allmost all the code is from msdn. It's 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 it's stuck (can't tamper with the UI or do anything else). I would like to run every upload process in a separate thread (if that's 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.

 

I'm 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!!

FTPUploader.zip

Edited by JumpyNET
  • 3 weeks later...
Posted

Every time you start a new upload, just start it in a new thread.

 

Dim UploadThread As New Thread(AddressOf UploadFile)
UploadThread.Start()

 

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 don't have time to mess with the code otherwise I would download it and edit it for you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...