home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
comm
/
zzmail.zip
/
EXEQMDL.SCR
next >
Wrap
Text File
|
1989-05-14
|
5KB
|
210 lines
; This is an edited version of qmml6.scr; edited to remove
; choices so it is useful for automated downloads of Qmail
; from PCBoard 14.x
; Be sure your DSZ is set up so it returns to Qmodem after a D/L
; To use:
; With your editor edit all the ASSIGN variables
; Be sure the door is set for the Qmail door you want
; Reset the DIAL line so it conforms to the QM.fon line you
; want on your dialing directory.
; Be sure your phone directory line does not have a script
; attached-don't use the same line as your logon script
; Place this file in your Qmodem script directory
;Once the above is done, use a command line such as:
; QMODEM /S=exedl.scr
; and the script should dial, download your mail and sign off
; Naturally you can rename the script and modify it for other
; boards.
;This scr downloads only from execnet
TURNON 8_BIT ;This series of entries sets up the
TURNOFF LINEFEED ;Qmodem operating environment.
TURNOFF XON/XOFF
TURNOFF NOISE
TURNOFF MUSIC
TURNON SCROLL
TURNOFF PRINT
TURNOFF ECHO
;
EGA 43
DIAL "20"
;The string command sets text strings to
;be used as variables in the script.
;
String QWKFILE REPFILE QWKPATH REPPATH DOOR XFER QPATH FNAME LNAME
ASSIGN QWKFILE execnet.QWK ; Enter the name of QWK file for system
ASSIGN REPFILE execnet.REP ; Enter the name of REP file for system
ASSIGN QWKPATH C:\QMODEM\DL\ ; Enter DRIVE:\PATH to DOWNLOAD directory
ASSIGN REPPATH C:\QMODEM\DL\ ; Enter DRIVE:\PATH to UPLOAD directory
ASSIGN DOOR 5 ; Enter the number of System QwikMail Door
ASSIGN XFER Z ; Enter the letter of the Protocol to use
ASSIGN QPATH C:\QMODEM\DL\ ; Enter the DRIVE:PATH to your reader
ASSIGN FNAME TED ; Enter your first name
ASSIGN LNAME CROCKETT ; Enter your last name
;
TimeOut 240 ; Set WAITFOR timeout to 240 seconds
WHEN
WHEN "Press (Enter) to continue?" "^M"
WHEN "graphics (Enter)=no?" "y Q^M"
WHEN "What is your first name?" "$FNAME $LNAME $PASSWORD^M"
WHEN "More (Y), (N), (NS)" "N^M"
WHEN "Enter Language #" "^M"
WHEN "Conference members (Enter)=no?" "^M"
WHEN "(H)elp, More?" "N^M"
WHEN "Since 'Last Read' (Enter)=yes?" "N^M"
WAITFOR "Command" dump
DELAY 100
GOTO Startc
start:
CLRSCR
PUTSCR
SEND "n^M"
WAITFOR "Command?" dump
DELAY 100
SEND "OPEN $DOOR^M"
WHEN
WHEN "you *MUST* begin by" config
WAITFOR "Command?" dump
DELAY 100
GOTO reDOWNLOAD
ReDOWNLOAD:
SEND "D^M"
WHEN
WHEN "nothing was found" DoRepsNow
WAITFOR "receive this packet (Y or N)?" dump
DELAY 100
SEND "Y^M"
WAITFOR "transfer of"
WAITFOR "$QWKFILE" dump
DELAY 300
SEND "^M"
DOWNLOAD $XFER $QWKPATH$QWKFILE
IF $SUCCESS DoRepsNow
GOTO ReDOWNLOAD
UpSection:
WAITFOR "Command?" dump
DELAY 100
DoRepsNow:
WHEN
EXIST $QPATH$REPFILE SendEm
GOTO AllDone
SendEm:
DELAY 1000
SEND "^M"
WAITFOR "Command?" dump
SEND "U^M"
DELAY 100
WAITFOR "Ready to receive" dump
WAITFOR "$REPFILE" dump
PAUSE 1000
UPLOAD $XFER $QPATH$REPFILE
IF $FAIL UpSection
DOS "copy $QPATH$REPFILE $QPATHlatest.rep"
DOS "del $QPATH$REPFILE"
GOTO AllDone
startc:
SEND "OPEN $DOOR^M"
dagain:
WHEN
WHEN "you *MUST* begin by" config
WAITFOR "Command?" dump
DELAY 100
GOTO DNLDONLY
DNLDONLY:
SEND "D^M"
WHEN
WHEN "nothing was found" Alldone
WAITFOR "receive this packet (Y or N)?" dump
DELAY 100
SEND "Y^M"
WAITFOR "transfer of"
WAITFOR "$QWKFILE"
DELAY 200
SEND "^M"
DOWNLOAD $XFER $QWKPATH$QWKFILE
IF $SUCCESS Alldone
GOTO dagain
Startd:
CLRSCR
PUTSCR
SEND "n^M"
WAITFOR "Command?" dump
DELAY 100
SEND "OPEN $DOOR^M"
WHEN
WHEN "you *MUST* begin by" config
WAITFOR "Command?" dump
DELAY 100
GOTO uponly
uponly:
WHEN
EXIST $QPATH$REPFILE Sendthem
SEND "^M"
GOTO AllDone
Sendthem:
SEND "U^M"
DELAY 100
WAITFOR "Ready to receive" dump
WAITFOR "$REPFILE" dump
PAUSE 1000
UPLOAD $XFER $QPATH$REPFILE
IF $FAIL Uponly
AllDone:
WAITFOR "Command?" dump
PAUSE 1000
SEND "G^M"
PAUSE 2000
HANGUP
SYSTEM Y
EXIT
Dump:
HANGUP
EXIT
config:
GETSCR
CLRSCR
COLORBG 7
COLORFG 4
BOX 10,2,70,7
CLRSCR
DISPLAYLN " Your must first configure your Qmail Packet"
DISPLAYLN " Please configure your packet before leaving Qmail"
DISPLAYLN " Script will end in 10 seconds "
DELAY 10000
COLORBG 0
COLORFG 14
CLRSCR
PUTSCR
EXIT