home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
games
/
batwin40.zip
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-05-03
|
2KB
|
69 lines
@echo off
bmsgwin 12 23 47 " BSAVESCR Saving Screen "
bsavescr \scr.scr
cls
bwindow 10 20 2 15 31
bputs 11 22 31 " BATWIN"
bputs 12 22 31 "Demonstration"
bputs 11 40 14 "<- Demonstrates BWINDOW and BPUTS"
blocate 23 0
bpause 19 1 31 " BATWIN programs must be in the PATH - Press a key to continue "
btextwin 5 10 31 bwintro.txt
btextwin 5 10 31 txttext.txt
:cont
cls
bmsgwin 7 25 47 "Choose a number"
bmsgwin 2 45 31 " Try pressing ESC "
bpoplist 10 27 8 47 poptest.txt
if errorlevel 100 goto :warnem
cls
if errorlevel 50 bmsgwin 6 20 112 "Errorlevel EQGT 50"
if errorlevel 19 bmsgwin 6 20 112 "You chose 19"
if errorlevel 18 bmsgwin 6 20 112 "You chose 18"
if errorlevel 17 bmsgwin 6 20 112 "You chose 17"
if errorlevel 16 bmsgwin 6 20 112 "You chose 16"
if errorlevel 15 bmsgwin 6 20 112 "You chose 15"
if errorlevel 14 bmsgwin 6 20 112 "You chose 14"
if errorlevel 13 bmsgwin 6 20 112 "You chose 13"
if errorlevel 12 bmsgwin 6 20 112 "You chose 12"
if errorlevel 11 bmsgwin 6 20 112 "You chose 11"
if errorlevel 10 bmsgwin 6 20 112 "You chose 10"
if errorlevel 9 bmsgwin 6 20 112 "You chose 9"
if errorlevel 8 bmsgwin 6 20 112 "You chose 8"
if errorlevel 7 bmsgwin 6 20 112 "You chose 7"
if errorlevel 6 bmsgwin 6 20 112 "You chose 6"
if errorlevel 5 bmsgwin 6 20 112 "You chose 5"
if errorlevel 4 bmsgwin 6 20 112 "You chose 4"
if errorlevel 3 bmsgwin 6 20 112 "You chose 3"
if errorlevel 2 bmsgwin 6 20 112 "You chose 2"
if errorlevel 1 bmsgwin 6 20 112 "You chose 1"
bpause 21 15 31
cls
goto :pick
:warnem
bwarn 14 40 31 WARNING " You pressed ESC !" " What should I do?"
if errorlevel 1 goto :end
cls
goto :cont
:pick
bmsgwin 3 15 47 " An example of one of the printer menus "
bputs 8 37 14 "Press ESC if no EPSON printer"
bepson 6 15 31
cls
bmsgwin 9 16 31 " Pick a directory "
bchdir 12 10 31
cls
Echo Now in subdirectory ...
cd
bdialog 12 25 47 " SELECT " " Do you want to return " " to the original subdir? "
if errorlevel 1 goto :nosw
bmsgwin 12 13 112 " Using BXQTDIR to switch to BATWIN directory "
bxqtdir
:nosw
blocate 20 0
:end
brestscr \scr.scr
del \scr.scr
bmsgwin 13 40 31 " Screen restored by BRESTSCR "
blocate 23 0