home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BATUTL / EXT_BAT.ZIP / GETDIGIT.DOC < prev    next >
Encoding:
Text File  |  1983-12-13  |  2.2 KB  |  72 lines

  1.  
  2.  
  3.        This program accepts a prompt from the command line and accepts
  4.        a one digit response to that prompt.  On exit, the DOS ERRORLEVEL
  5.        is set to the digit.  Non-numeric keys are ignored and <Ctrl><Break>
  6.        will not exit.
  7.  
  8.        This program requires DOS 2.0.
  9.  
  10.        Usage:
  11.          GETDIGIT prompt
  12.        where "prompt" is the message to displayed to the user.
  13.  
  14.        Example batch file usage:
  15.       echo off
  16.       :menu
  17.       cls
  18.       echo ---IBM PC Menu--
  19.       echo 1 - Run Wordstar
  20.       echo 2 - Run Dbase II
  21.       echo 3 - Exit to  DOS
  22.       GETDIGIT Please enter an option number:
  23.       if errorlevel 4 goto menu
  24.       if errorlevel 3 goto end
  25.       if errorlevel 2 goto dbase
  26.       if errorlevel 1 goto wordstar
  27.       :if we get here nothing matched -- try again
  28.       goto menu
  29.       :wordstar
  30.       cls
  31.       echo We would run WORDSTAR here.
  32.       pause
  33.       goto menu
  34.       :dbase
  35.       cls
  36.       echo We would run DBASE here.
  37.       pause
  38.       goto menu
  39.       :end
  40.       cls
  41.       echo on
  42.  
  43.        Copyright (C) 1983  Tony Alan Rhea
  44.        This program may be copied and distributed for personal use
  45.        but not for profit provided this notice is included.  Author makes
  46.        no warranty, expressed or implied, as to the correct nature and
  47.        operation of this software.
  48.  
  49.  
  50.        You may make and distribute as many copies of this program as you wish
  51.        for your PERSONAL use only ( NOT for business purposes, please! ).
  52.        Feel free to modify, mutilate, or adulterate this program.  If you come
  53.        up with an bug or improvement, please let me know by writing me at this
  54.        address:
  55.            Tony A. Rhea
  56.            1030 Ivy Lane
  57.            Cary, NC  27511
  58.        If you do modify it, please give me credit in the program.  This helps
  59.        to preserve my ego and increase my fame (but, unfortunately, NOT my
  60.        financial status).  Also, I would appreciate a copy of the modified
  61.        version, preferably on disk (I'll be happy to return your diskette).
  62.  
  63.        If you like this program ( or HATE it ), please let me know.  Drop me
  64.        a line at the address given above.
  65.  
  66.        This program has been submitted for publication in PC-WORLD magazine.
  67.  
  68.  
  69.      Revision history:
  70.         rev 1.0  10/26/83                  { original release }
  71.  
  72.