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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receiving multiple files in ECGateway script

Status
Not open for further replies.

jvvolkman

Programmer
Mar 15, 2004
24
US
Hello,

I have a trading partner where I must connect to their system, send a header file, then wait for my files to be returned (there may be 3 or 4 different files). I did this manually and recorded the script, but pfsAsync stops after receiving the first file. Does anyone know why it won't wait to receive further files? I never know how many files I'll be getting. Here's my script:

Pfsasync Script Version 4.0 -- 7/9/2004 9:42:31 AM
DISABLE_DYNAMIC_PORT
PORT 1
TIMEOUT 300
ON_TIMEOUT_GOTO :TIMEOUT
SETTINGS "57600,N,8,1"
SEND "ATDT BBS# here...^M"
WAITFOR "only!^M^JCCC"
PROTOCOL "ZMODEM"
TRANSFEROPTION APPEND
UPLOADDIR C:\ECEDIGS\DATAFILES
UPLOAD "C:\ECEDIGS\DATAFILES\FHRCVHDR.TXT"
WAITFOR "00000000^M^J"
PROTOCOL "ZMODEM"
TRANSFEROPTION APPEND
DOWNLOADDIR C:\ECEDIGS\PF_PostOffice\FIRSTHLTH\IN
DOWNLOAD "*.*"
WAITFOR "00000000^M^J"
HANGUP
:TIMEOUT
END

If anyone has ever dealt with this type of thing and has any input, it would be greatly appreciated. Thank you!

jvvolkman
 
Update: I have another Trading Partner where I simply connect to their system and retrieve all waiting files (again, an unknown number of files), without having to send a header file first. This one seems to work fine. I'm wondering if maybe the send of the original header file in the problem TP is causing some confusion??? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top