Need to download couple files as background proces - WeOnlyDo Discussion board

Need to download couple files as background proces (General questions)

by Ganeshram, Tuesday, September 28, 2004, 10:55 (7160 days ago)

Hi ,
I am trying to download couple of files in background process

for(int iCnt=0;iCnt<lstFile.Items.Count;iCnt++)
{
_SFTP.getFile(txtLocal.Text+lstFile.Items[iCnt].ToString(),
txtRemote.Text+lstFile.Items[iCnt].ToString()
);
}
this is not working file,b'cas before the file is getting downloaded the
next file is been requested.How to override this.
Can u send me sample on this...to make it working
Bye
Ganesh

Re: Need to download couple files as background pr

by wodSupport, Tuesday, September 28, 2004, 12:05 (7160 days ago) @ Ganeshram

Ganeshram,

I think setting sftp.Blocking = True prior to calling Connect should solve your problem. Can you try that?