home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
roboos2b.zip
/
OS2-DOW.RS
next >
Wrap
Text File
|
1994-03-11
|
8KB
|
300 lines
TITLE "OS2Shareware File Download"
;Will download up to 9 files
;For more use a second script.
; The numbers on the next lines don't actually do anything. They are
; only added to increase the readability of the script. Robocomm
; always numbers parameters in the order they are encountered in
; the file.
PARAMETER 1 "Enter 1st File Name to GET"
PARAMETER 2 "Enter 2nd File Name to GET"
PARAMETER 3 "Enter 3rd File Name to GET"
PARAMETER 4 "Enter 4st File Name to GET"
PARAMETER 5 "Enter 5th File Name to GET"
PARAMETER 6 "Enter 6th File Name to GET"
PARAMETER 7 "Enter 7th File Name to GET"
PARAMETER 8 "Enter 8th File Name to GET"
PARAMETER 9 "Enter 9th File Name to GET"
ENDPARAMS
TIMEOUT 120
IF NOT CONNECTED GOTO NotOn
WHEN "MESSAGE: SEND "M"
SEND "|"
WHEN "to continue" Send "|"
WHEN "More [Y,n,=]?" SEND "|"
; Send a bunch of <CR> to get through the other prompts
; without modifications
CLEAR
WHEN "to continue" Send "|"
WHEN "More [Y,n,=]?" SEND "|"
SEND "||"
WAITFOR "MAIN:" FAILURE HANGUP
; Change to File Area
MESSAGE "Changing to File Area"
SEND "F"
WAITFOR "FILE:"
; Getting File 1
:GetFile1
IF EMPTY "%P1%" GOTO GetFile2
Message "Initiating Download of %P1% "
Send "D"
Waitfor "download (#"
Message "Requesting %P1% file"
IF NOT EMPTY "%P1%" SEND "%P1%|"
CLEAR
WHEN "I see no" GOTO NoFile1
WHEN "Transfer aborted." GOTO Aborted1
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
Waitfor "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P1%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P1% Failed with Protocol Error"
SEND "||"
GOTO GetFile2
:NoFile1
MESSAGE "File %P1% is not on board"
SEND "||"
GOTO GetFile2
:Aborted1
Message "Transfer aborted, Probably no time"
:GetFile2
IF EMPTY "%P2%" GOTO GetFile3
Message "Initiating Download of %P2%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P2% file"
IF NOT EMPTY "%P2%" SEND "%P2%|"
CLEAR
WHEN "I see no" GOTO NoFile2
WHEN "Transfer aborted." GOTO Aborted2
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P2%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P2% Failed with Protocol Error"
SEND "||"
GOTO GetFile3
:NoFile2
MESSAGE "File %P2% is not on board"
SEND "||"
GOTO GetFile3
:Aborted2
Message "Transfer aborted, Probably no time"
:GetFile3
IF EMPTY "%P3%" GOTO GetFile4
Message "Initiating Download of %P3%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P3% file"
IF NOT EMPTY "%P3%" SEND "%P3%|"
CLEAR
WHEN "I see no" GOTO NoFile3
WHEN "Transfer aborted." GOTO Aborted3
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P3%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P3% Failed with Protocol Error"
SEND "||"
GOTO GetFile4
:NoFile3
MESSAGE "File %P3% is not on board"
SEND "||"
GOTO GetFile4
:Aborted3
Message "Transfer aborted, Probably no time"
:GetFile4
IF EMPTY "%P4%" GOTO GetFile5
Message "Initiating Download of %P4%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P4% file"
IF NOT EMPTY "%P4%" SEND "%P4%|"
CLEAR
WHEN "I see no" GOTO NoFile4
WHEN "Transfer aborted." GOTO Aborted4
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P4%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P4% Failed with Protocol Error"
SEND "||"
GOTO GetFile5
:NoFile4
MESSAGE "File %P4% is not on board"
SEND "||"
GOTO GetFile5
:Aborted4
Message "Transfer aborted, Probably no time"
:GetFile5
IF EMPTY "%P5%" GOTO GetFile6
Message "Initiating Download of %P5%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P5% file"
IF NOT EMPTY "%P5%" SEND "%P5%|"
CLEAR
WHEN "I see no" GOTO NoFile5
WHEN "Transfer aborted." GOTO Aborted5
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P5%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P5% Failed with Protocol Error"
SEND "||"
GOTO GetFile6
:NoFile5
MESSAGE "File %P5% is not on board"
SEND "||"
GOTO GetFile6
:Aborted5
Message "Transfer aborted, Probably no time"
:GetFile6
IF EMPTY "%P6%" GOTO GetFile7
Message "Initiating Download of %P6%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P6% file"
IF NOT EMPTY "%P6%" SEND "%P6%|"
CLEAR
WHEN "I see no" GOTO NoFile6
WHEN "Transfer aborted." GOTO Aborted6
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P6%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P6% Failed with Protocol Error"
SEND "||"
GOTO GetFile7
:NoFile6
MESSAGE "File %P6% is not on board"
SEND "||"
GOTO GetFile7
:Aborted6
Message "Transfer aborted, Probably no time"
:GetFile7
IF EMPTY "%P7%" GOTO GetFile8
Message "Initiating Download of %P7%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P7% file"
IF NOT EMPTY "%P7%" SEND "%P7%|"
CLEAR
WHEN "I see no" GOTO NoFile7
WHEN "Transfer aborted." GOTO Aborted7
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P7%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P7% Failed with Protocol Error"
SEND "||"
GOTO GetFile8
:NoFile7
MESSAGE "File %P7% is not on board"
SEND "||"
GOTO GetFile8
:Aborted7
Message "Transfer aborted, Probably no time"
:GetFile8
IF EMPTY "%P8%" GOTO GetFile9
Message "Initiating Download of %P8%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P8% file"
IF EMPTY "%P1%" GOTO GetFile9
IF NOT EMPTY "%P8%" SEND "%P8%|"
CLEAR
WHEN "I see no" GOTO NoFile8
WHEN "Transfer aborted." GOTO Aborted8
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P8%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P8% Failed with Protocol Error"
SEND "||"
GOTO GetFile9
:NoFile8
MESSAGE "File %P8% is not on board"
SEND "||"
GOTO GetFile9
:Aborted8
Message "Transfer aborted, Probably no time"
:GetFile9
IF EMPTY "%P9%" GOTO GetFile10
Message "Initiating Download of %P9%"
Send "D"
WAITFOR "download (#"
Message "Requesting %P9% file"
IF NOT EMPTY "%P9%" SEND "%P9%|"
CLEAR
WHEN "I see no" GOTO NoFile9
WHEN "Transfer aborted." GOTO Aborted9
WAITFOR "download (#"
Message "Sending Enter To Start Download"
SEND "|"
WAITFOR "times to cancel."
Message "Starting Protocol"
Download "%DLDIR%%P9%" Using "%BBS20%"
IF ERRORLEVEL MESSAGE "Download of %P9% Failed with Protocol Error"
SEND "||"
GOTO GetFile10
:NoFile9
MESSAGE "File %P9% is not on board"
SEND "||"
GOTO GetFile10
:Aborted9
Message "Transfer aborted, Probably no time"
:GetFile10
SEND "|||"
WAITFOR "FILE:"
SEND "M"
Exit 0
:NotOn
Message "Make Sure SCript to Execute After Log On"
Message "is Set in BBs Systems"
Exit 1