home *** CD-ROM | disk | FTP | other *** search
- {
- | File queue editor
- | Alex Howarth (09 July 1996)
-
- | Havent tested this much,. written for demo
-
- LABEL rescanqlist
- REPORT "Queue editor"
- STD NL
- IF TAGGEDFILES<1 THEN
- TAB 0 PRINT "No files queued" NL
- GOSUB anykey
- END
- ENDIF
- STD CLS
- BFG 7
- TAB 0 PRINT "Ref#"
- TAB 7 PRINT "FileName"
- TAB 20 PRINT "Bytes"
- NL
- OPENFILEBASE
- num%=1
- STARTMORE
- REPEAT
- READTAG num%,mun%
- READFILE mun%
- BFG 3
- TAB 0 PRINT num%
- TAB 7 PRINT FILEBASENAME
- TAB 20 PRINT FILEBASESIZE
- num%=num%+1
- NL
- UNTIL num%>TAGGEDFILES
- NL
- BFg 2 PRINT "R"
- BFG 7 PRINT "emove a file / "
- BFG 2 PRINT "C"
- BFG 7 PRINT "lear list / "
- BFG 2 PRINT "D"
- BFG 7 PRINT "ownload queue / "
- BFG 2 PRINT "Q"
- BFG 7 PRINT "uit / "
- CLL
- BFG 2 PRINT "A"
- BFG 7 PRINT "uto download+logoff"
- CLL STD
- ENDMORE
- GETr option,"QRCDA"
- IF option="Q" THEN
- CLOSEFILEBASE
- END
- ENDIF
- IF option="R" THEN
- REPORT "Removing queued file"
- NL BFG 1
- PRINT "File to remove (CR aborts) ref# "
- BATTR 7,4 INPUTc value%,3
- IF value%<>"" THEN
- REMOVETAG value%
- CLOSEFILEBASE
- JUMP rescanqlist
- ENDIF
- ENDIF
- IF option="D" THEN
- REPORT"Downloading tagged files"
- STD NL NL BFG 3
- PRINT"["+TAGGEDFILES+"file"
- IF TAGGEDFILES>1 THEN
- PRINT"(s)] for download.."
- ELSE
- PRINT"] for download.."
- ENDIF
- NL NL
- GOSUB protocols
- BFG 7 NL
- IF xfer%<>99 THEN
- BATCHSTART xfer%
- tagnum%=1
- REPEAT
- READTAG tagnum%,filenum%
- BATCHSEND filenum%,xfer%,stop%
- tagnum%=tagnum%+1
- UNTIL tagnum%>TAGGEDFILES OR stop%
- BATCHFINISH xfer%
- CLEARTAGS
- ENDIF
- CLOSEFILEBASE
- ENDIF
- IF option="A" THEN
- STD
- REPORT "Download tags and logoff"
- NL
- BFG 7 PRINT "There is no way back after this, are you sure "
- PRINT "[" FG 7 PRINT "y"
- BFG 7 PRINT "/" BFG 1 PRINT "N"
- BFG 7 PRINT "]"
- GETd option,"NY"
- IF option="N" THEN
- CLOSEFILEBASE
- JUMP rescanqlist
- ELSE
- GOSUB protocols
- IF xfer%<>99 THEN
- BATCHSTART xfer%
- tagnum%=1
- REPEAT
- READTAG tagnum%,filenum%
- BATCHSEND filenum%,xfer%,stop%
- tagnum%=tagnum%+1
- UNTIL tagnum%>TAGGEDFILES OR stop%
- BATCHFINISH xfer%
- CLEARTAGS
- ENDIF
- CLOSEFILEBASE
- LOGOFF
- ENDIF
- ENDIF
- IF option="C" THEN
- REPORT "Clearing tags"
- NL
- BFG 7 PRINT "About to clear list, are you sure ["
- FG 7 PRINT "y" BFG 7 PRINT "/"
- BFG 1 PRINT "N" BFG 7 PRINT "]"
- GETd option,"NY"
- IF option="Y" THEN
- CLEARTAGS
- ELSE
- JUMP rescanqlist
- ENDIF
- ENDIF
-
- END
-
- SUB protocols
- | A sub within a script
- TAB 0 STD CLL
- BFG 2 PRINT"Z"
- BFG 7 PRINT"modem / "
- BFG 2 PRINT"Y"
- BFG 7 PRINT"modem / "
- BFG 2 PRINT"B"
- BFG 7 PRINT"YmodemB / "
- BFG 2 PRINT"X"
- BFG 7 PRINT"modem / "
- BFG 2 PRINT"1"
- BFG 7 PRINT"Xmodem1K / "
- BFG 2 PRINT"C"
- BFG 7 PRINT"XmodemCRC / "
- BFG 2 PRINT"Q"
- BFG 7 PRINT"ueue / "
- BFG 2 PRINT"A"
- BFG 7 PRINT"bort"
- GET protocol,"ZYBX1CQA"
- IF protocol="Z" THEN
- protocol="Zmodem"
- xfer%=5
- ENDIF
- IF protocol="Y" THEN
- protocol="Ymodem"
- xfer%=3
- ENDIF
- IF protocol="B" THEN
- protocol="YmodemB"
- xfer%=4
- ENDIF
- IF protocol="X" THEN
- protocol="Xmodem"
- xfer%=0
- ENDIF
- IF protocol="1" THEN
- protocol="Xmodem1K"
- xfer%=2
- ENDIF
- IF protocol="C" THEN
- protocol="XmodemCRC"
- xfer%=1
- ENDIF
- IF protocol="A" THEN
- protocol="Abort"
- xfer%=99 | not now used,. oh well:)
- CLOSEFILEBASE
- JUMP rescanqlist
- ENDIF
- ENDSUB
- }