home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1989 / 02 / repldemo.bat < prev    next >
DOS Batch File  |  1988-09-02  |  269b  |  13 lines

  1. @ECHO OFF
  2. ECHO Do you want to continue?  Answer yes or no.
  3. CALL GETREPLY
  4. FOR %%f IN (yes no YES NO) DO IF %reply%==%%f GOTO %%f
  5. ECHO You entered "%reply%" -- that is not yes or no.
  6. GOTO end
  7. :yes
  8. ECHO You entered yes.
  9. GOTO end
  10. :no
  11. ECHO You entered no.
  12. :end
  13.