Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zmodem multi file download timeout 1

Status
Not open for further replies.

oldbowler

Programmer
Mar 13, 2003
14
US
My script is timeing out when downloading multiple files using Zmodem. The first file (usually 1 - 5 KB) downloads fine. The second file (usually 700 - 900 KB) starts and then time outs, I only get a few KB. The rest of the script processes ok. I can download manually just fine.

Here is the script:

waitfor "ferring files ...rz" 60
if SUCCESS
getfile ZMODEM
iXferStatus = $XFERSTATUS
while iXferStatus == 1
iXferStatus = $XFERSTATUS
endwhile
waitfor "Your transfer was successful"
endif

Any ideas or suggestions?
Thanks.
 
The problem still exists. I even tried a longer waitfor "Your transfer was successful" with no success.
 
When you perform the multiple downloads, does it appear that each transfer is being handled separately, or does it look like a batch transfer? I believe that there should be two progress bars in the file transfer dialog, one for the current file and one for the entire batch of files.


aspect@aspectscripting.com
 
They are sending all the available files one after another and not in batch mode. I get one transfer screen per file.
 
Does the "Your transfer was successful" message appear after each file has been transferred or just the last file? If it only appears after the last file, is there any text displayed after each single file transfer, or does the other side just send each file individually without any messages between them until all files have been sent?

aspect@aspectscripting.com
 
Your transfer was successful" only appears after the last file was sent. They appear to send each file individually because the Zmodem file transfer window says "No batch information" in the Batch Progress thermometer.
 
Do you know before the first transfer how many files total you will be receiving from the system, or is there a string of text that you could parse to get that information?


aspect@aspectscripting.com
 
The BBS has a memu option to list the files along with a line stating the total number of files avaiable for download. I am not using this memu option. I go directly to the download option.

Your last reply got me thinking that I could get the number of files and put the getfile in a dowhile loop based on the number of files. Yes / No? Or do you have a better idea?

 
That's exactly what I would do, get the number of files from the system, then wrap your existing download code (minus the waitfor) inside a for loop. You would then want to place the waitfor command after the endfor command so that the script pauses until the transfer complete message is received.

aspect@aspectscripting.com
 
Thanks for your help. I owe you more than one liquid refreshment of your choice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top