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!

Simple question from another new guy

Status
Not open for further replies.

BBSGuy

Technical User
Aug 24, 2005
2
US

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
 
Sorry I'm a complete moron. I didn't realize that I was compiling an old version of the script each time so I wasn't testing my changes. Disregard this post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top