home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
roboos2b.zip
/
OS2-NEW.RS
< prev
next >
Wrap
Text File
|
1994-03-12
|
1KB
|
69 lines
TITLE "OS/2 Shareware New files Scan"
ENDPARAMS
TIMEOUT 120
IF NOT CONNECTED GOTO NotOn
;Keep a lookout for standard prompts
WHEN "[Y,n,t,=]?" SEND "|"
WHEN "to continue" Send "|"
WHEN "No, Continous ]" Send "|"
WHEN "More [Y,n,=]?" SEND "|"
WHEN "Located 0 matches." GOTO NoNewFiles
; Send a bunch of <CR> to get through the other prompts
; without modifications
SEND "||"
WAITFOR "MAIN:" FAILURE HANGUP
;Switch to File Area
MESSAGE "Changing to Files Area"
SEND "F"
WAITFOR "FILE:"
;Scan for new Files
MESSAGE "Newfile Scan Began"
SEND "N"
;Open Capture File
MESSAGE "Capture file OS2SHARE.CAP opened"
CAPTURE "%ID%.Cap" OVERWRITE
;Start scan
CLEAR
WHEN "[Y,n,t,=]?" SEND "|"
SEND "|"
WAITFOR "FILE:"
; Close Capture File
Close
Message "Capture file closed"
; Return To Opening Menu
Message "Returning to opening menu"
SEND "M"
WAITFOR "MAIN:"
Message "Running Qedit to Remove More prompt
; RUN "Q %ID%.CAP -E%ID%.MAC" KEYBOARD "{Esc}"
Message "Running Dir4Robo to sort file list"
RUN "DIR4ROBO %ID%.CAP"
EXIT 0
:NoNewFiles
MESSAGE "No new files on board"
; Return To Opening Menu
Send "M"
WAITFOR "MAIN:"
EXIT 0
:NotOn
Message "Make Sure SCript to Execute After Log On"
Message "is Set in BBs systems"
Exit 1