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
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