Problem with receiving multiple files (General questions)
Hi all
I am trying to get the multiple files from the server using wodTelnetDLX product.
Application/service is working when there is a 1 file to download.
When there are more than 1 files to download, below code works fine.
for (int i = 0; i < receivedCount; i++)
{
wod.Prompt = @ regex:[$] ;
MessageBox.Show(i.ToString());
System.Threading.Thread.Sleep(3000);
string RecvFileName = RandomFileName;
object recvFileFulllName = RecvFolder + RecvFileName;
wod.Send( sz
);
wod.ReceiveFile(TransferProtocolsEnum.ZMODEM, recvFileFulllName);
}
Actually, I wanted to download all files without any user intervention, so I removed MessageBox and new code is
for (int i = 0; i < receivedCount; i++)
{
wod.Prompt = @ regex:[$] ;
Log.Write(i.ToString());
System.Threading.Thread.Sleep(3000);
string RecvFileName = RandomFileName;
object recvFileFulllName = RecvFolder + RecvFileName;
wod.Send( sz
);
wod.ReceiveFile(TransferProtocolsEnum.ZMODEM, recvFileFulllName);
}
Above updated code download only first file and then disconnect from telnet. Then I am not upload any file/s.
I just replace MessageBox.show to Log.write.
I tried to comment sleepingTime, increase sleep time, decrease sleep time and all but there is not change in behavior.
Any help would be appreciated.
Thank you
Rajndra Gandhi
Re: Problem with receiving multiple files
Raj,
I believe I just responded to you on our ticketing system. Can you please check your e-mail for response.
Regards,
Damba