home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / EDITORES / E88_422.ZIP / YN.DOC < prev   
Encoding:
Text File  |  1987-12-20  |  1.2 KB  |  25 lines

  1. YN is a public domain utility from:   MRE Software             │  Written by:
  2. ────────────────────────────────────┐ 150 Jones St.            │   Emery D.
  3. Home of The E88 Text Editor and     │ West Point, MS. 39773    │   Wooten Jr.
  4. The E88 Text Editor machine.        │ BBS (601) 494-8078       │
  5. ────────────────────────────────────┴──────────────────────────┴──────────────
  6. YN sets the ERRORLEVEL return code value to either 1 or 0
  7. Y or y => ERRORLEVEL = 0   //   N or n => ERRORLEVEL = 1
  8.  
  9. Place YN in your batch file whenever you require a Y/N answer.  It will wait
  10. for a character to be struck from the keyboard.  If the character is Y or y
  11. the ERRORLEVEL will be set to 0.  If the character is N or n then YN will
  12. return an ERRORLEVEL code of 1.  If the character is not Y or y or N or n
  13. then YN will ignore it and continue to wait until it gets a valid character.
  14. ----------------------------------------------------------------------------
  15. Batch file Example:
  16. ECHO OFF
  17. :START
  18. ECHO  Do you want to continue this endless madness? (Y/N)
  19. YN
  20. IF ERRORLEVEL 1 GOTO END
  21. GOTO START
  22. :END
  23. ECHO  Thank you!  I was beginning to get tired.
  24. ----------------------------------------------------------- Enjoy -----------
  25.