home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
BATBOX11.ZIP
/
YESNO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-09
|
1KB
|
25 lines
@echo off
rem YESNO.BAT -- Demo BAT file for BOXYESNO.COM 1.1
rem by Mel Raff 7/9/91
rem This demo BAT file illustrates the use of the DOS errorlevel codes
rem returned by BOXYESNO.COM. Note that, like BOXECHO, the companion utility,
rem BOXYESNO requires only a single parameter: the name of the text file to
rem display in the box. You have the option of also instructing BOXYESNO
rem where to place the box on the screen and what colors to use in doing so.
rem But you can omit these parameters. The default colors are white text on
rem blue background, with the box centered both vertically and horizontally.
rem For full instructions, enter BOXYESNO with no parameters.
rem Here is a call to BOXYESNO using all the parameters and illustrating
rem the construction of a batch file to take differing actions depending on
rem the answer the user provides:
rem
boxyesno yesno.txt b=g f=r t=3 l=4
if errorlevel 1 goto no
rem YES Action:
echo You said YES.
goto end
:no
rem NO Action:
echo You said NO.
:end