Category : Communication (modem) tools and utilities
Archive   : CA29-1.ZIP
Filename : REGISTER.CMD

 
Output of file : REGISTER.CMD contained in archive : CA29-1.ZIP
; ----- Print a registration form (REGISTER.FRM) ------------------
; ----------------------------------------
; Open the form-file
;
SET FLAG(9) OFF ; Clear ESC flag
ON ESCAPE GOSUB Escape ; Set ESC handler
FOPENI "register.frm" text
IF FAILED
WOPEN 10,1 12,78 (default) ESCAPE
ATSAY 10,3 (default) " Print Registration "
ATSAY 11,3 (default) "REGISTER.FRM is not on the current subdirectory."
ATSAY 12,29 (default) " Press any key to exit "
KEYGET S0 ; Wait for any key
WCLOSE ; Close open window
GOTO Exit ; Exit if ESC
ENDIF
;
; Wait for the printer to be prepared...
;
WOPEN 10,1 12,78 (default) ESCAPE
ATSAY 10,3 (default) " Print Registration "
ATSAY 11,3 (default) "Please prepare the printer. Press any key to start."
ATSAY 12,30 (default) " Press ESC to cancel "
KEYGET S0 ; Wait for any key
WCLOSE ; Close open window
IF FLAG(9) GOTO Exit ; Exit if ESC
GOTO Start
;
; ----- Subroutine: ESC handler: Close open windows and exit script
;
Escape:
SET FLAG(9) ON ; Mark ESC pressed
RETURN
;
; ----- Exit routine
;
Exit:
IF FCALLED FRET ; Return if fcalled
EXIT
;
; ----- Print registration form
;
Start:
READ S0 80 N0 ; Read a line of the form
IF NOT EOF ; If not end-file
PRESERVE S0 ; Preserve !s ^s and `s
PRINT S0&"" ; Print the line
PRINT "^M^J" ; .. and a cr/lf
IF FLAG(9) GOTO Exit ; Exit on Escape
GOTO Start ; Loop until EOF
ENDIF
;
; End-File on input
;
PRINT "^L" ; Print a final tof
FCLOSEI ; Close input file
GOTO Exit ; And done


  3 Responses to “Category : Communication (modem) tools and utilities
Archive   : CA29-1.ZIP
Filename : REGISTER.CMD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/