Here is something that should get you started. You will likely want to add a waitfor command after the transmit command to make sure that Procomm and the remote side are synched up before issuing the getfile command.
To get the script to run at a specific time, you can either schedule it using the Windows Scheduler, or run it manually and use the waituntil command to have the script pause until the correct time has been reached.
proc main
integer iStatus
dial DATA "entryname"
while $DIALING
yield
endwhile
if $CARRIER == 1
transmit "^B05,c"
getfile ZMODEM
iStatus = $XFERSTATUS
while iStatus == 1
iStatus = $XFERSTATUS
endwhile
if iStatus == 2
;Transfer successful, continue with script execution
elseif iStatus == 3
;Transfer failed, perform error handling
endif
hangup
endif
endproc
If you are asking how to send a carriage return so the transmit command sent by the script is acted on by the remot system, then add ^M to the end of the transmitted string (just before the closing double quote).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.