I am trying to figure out a way to skip the GETFILE ZMODEM if the "WAITFOR START>" doesn't happen. This is the code I currently have. Someone please tell me what I'm doing wrong.
Thanks,
WAITFOR "LOGIN:" 30
TRANSMIT "******;^M"
WAITFOR "PASSWORD:" 20
TRANSMIT "******^M"
WAITFOR "PN>" 25
TRANSMIT "xack^M"
WAITFOR "START>" 15
if SUCCESS
GETFILE ZMODEM
else
GOTO X277U
endif
pause 10
WAITFOR "PN>" 30
X277U:
TRANSMIT "x277u^M"
WAITFOR "START>" 15
if SUCCESS
GETFILE ZMODEM
else
GOTO LOGOFF
endif
WAITFOR "PN>"
LOGOFF:
PAUSE 10
TRANSMIT "logoff^M"
PAUSE 5
HANGUP
PWEXIT
ENDPROC