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!

Aborting a File Transfer..

Status
Not open for further replies.

swong88

Technical User
Sep 18, 2003
4
US
Hello all, I have a question about aborting a file transfer from a script. Is at all possible?? I currently have two scripts running doing multiple connections between two modems. After each connection, the script will upload a file from one modem to the other. Then it will handup and do the same over and over again. The problem I am seeing is that on some connections, the Zmodem protocol will receive a bad-CRC. The receiving side will time-out and abort the file transfer on it's own but the transmitting side sits there waiting forever. Is there a way that I can put a timer here so that if the timer reaches above some value to abort the file transfer from the transmitting side? Thanks in advance...
 
You can use the xfercancel command to cancel the file transfer, but there is no way to have this command activate after so many seconds have expired. Most of the information in the file transfer dialog is not available through ASPECT, so your script cannot be informed of the transfer errors occurring. However, if the remote side drops the connection, you can configure Procomm to abort the connection if the phone line drops. To do so, select the Options | Data Options | Advanced menu item in Procomm, check the Abort transfer if Carrier Detect signal lost checkbox, then click OK to save this change.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top