home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / GLEN / BATBOX11.ZIP / YESNO.BAT < prev    next >
DOS Batch File  |  1991-07-09  |  1KB  |  25 lines

  1. @echo off
  2. rem                YESNO.BAT -- Demo BAT file for BOXYESNO.COM 1.1
  3. rem                                by Mel Raff 7/9/91
  4. rem     This demo BAT file illustrates the use of the DOS errorlevel codes
  5. rem returned by BOXYESNO.COM.  Note that, like BOXECHO, the companion utility, 
  6. rem BOXYESNO requires only a single parameter: the name of the text file to 
  7. rem display in the box.  You have the option of also instructing BOXYESNO 
  8. rem where to place the box on the screen and what colors to use in doing so.
  9. rem But you can omit these parameters.  The default colors are white text on
  10. rem blue background, with the box centered both vertically and horizontally.
  11. rem For full instructions, enter BOXYESNO with no parameters.
  12. rem     Here is a call to BOXYESNO using all the parameters and illustrating
  13. rem the construction of a batch file to take differing actions depending on
  14. rem the answer the user provides:
  15. rem
  16. boxyesno yesno.txt b=g f=r t=3 l=4
  17. if errorlevel 1 goto no
  18. rem YES Action:
  19. echo You said YES.
  20. goto end
  21. :no
  22. rem NO Action:
  23. echo You said NO.
  24. :end
  25.