Simple Async Dial-Up Connection |
Top Previous Next |
The example script file shown below attempts to dial up to three times. Once connected, it sends a file named 'login'. If the send file completes normally, the script file waits for a single file from the remote system. Once a file is received, or the RCVFILE command times out, the script file disconnects and exits.
:dial_loop DIAL "1-555-1212" LOOPIF goto dial_loop else goto connect :connect SENDFILE "login" IFERROR goto sendfail RCVFILE /timeout=60 :sendfail
|