home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 16 / FREEDOS.ZIP / FD_A4PRE.ZIP / HELP / PAUSE < prev    next >
Text File  |  1995-06-28  |  2KB  |  67 lines

  1.  
  2.      PAUSE (utility)        Free-DOS Alpha 4 release        PAUSE (utility)
  3.  
  4.  
  5.  
  6.      NAME: 
  7.  
  8.           PAUSE - Displays a message and waits for a keystroke 
  9.  
  10.      SYNOPSIS: 
  11.  
  12.           PAUSE [/K=keys] [/Q] [/R] [message] 
  13.  
  14.      DESCRIPTION: 
  15.  
  16.           PAUSE suspends whatever you have going on at the moment 
  17.           (like a batch file) and displays a message, waiting for a 
  18.           keypress.  
  19.  
  20.           PAUSE can be set to wait for a particular set of keys to be 
  21.           pressed, and can also return the key pressed via the 
  22.           ERRORLEVEL variable.  
  23.  
  24.           If you redirect the input to PAUSE you defeat its purpose.  
  25.           That would be a  silly thing to do.  
  26.  
  27.      OPTIONS: 
  28.  
  29.           /K=keys - Forces PAUSE to wait until the key of one of the 
  30.           specified  characters is pressed.  If any other key is 
  31.           pressed, PAUSE will sound a  beep.  
  32.  
  33.           /Q - Prevents PAUSE from beeping when the /K switch is 
  34.           used.  
  35.  
  36.           /R - PAUSE returns the ASCII value of the key pressed.  This 
  37.           is available  through the ERRORLEVEL variable.  For example, 
  38.           'A' would return 65.  
  39.  
  40.           message - Message to be displayed on the screen.  If no 
  41.           message is specified, a generic message will be supplied.  
  42.  
  43.      AUTHOR: 
  44.  
  45.           James Hall 
  46.  
  47.      EXAMPLES: 
  48.  
  49.           To suspend execution of a batch file until any key is 
  50.           pressed: 
  51.  
  52.                PAUSE 
  53.  
  54.           To suspend execution of a batch file with the message 
  55.           "Y/N?"  while  returning the value of the key pressed: 
  56.  
  57.                PAUSE /R Y/N?  
  58.  
  59.           To suspend execution of a batch file until 'A' 'B' or 'C' is 
  60.           pressed, along with a message to that effect: 
  61.  
  62.                PAUSE /K=ABCabc Press A B or C: 
  63.  
  64.  
  65.                                       -1-
  66.  
  67.