Hi all, I create an automatic ftp file downloader by using FTPwebrequest. In which, is there any possible to download multiple files simultaneously using Asynchrounous and threading concept? . I need to some guidance or tutorials for asynchrounous ftp file download. Pls guide me.
+1
A:
maybe this vb code could help:
' begin asynchronous transfer '
Dim asyncResult As IAsyncResult
asyncResult = ftp.BeginGetFile( _
remotePath, _
localPath, _
New AsyncCallback(AddressOf MyCallback), _
Nothing _
)
Do
' do something else here... '
Loop While Not asyncResult.IsCompleted
' get the result '
Dim bytes As Long
bytes = ftp.EndGetFile(asyncResult)
code source
jjj
2010-01-09 07:21:01