home *** CD-ROM | disk | FTP | other *** search
/ Play and Learn 2 / 19941.ZIP / 19941 / COMREF / DOS5TUT / BGOTO.DAT < prev    next >
Encoding:
Text File  |  1994-02-05  |  525 b   |  17 lines

  1. Explanation of the GOTO command. It is a 
  2. BATCH command.
  3. This command tells the batch file to go 
  4. to a certain label in the batch file, and 
  5. possibly skip a part of the program.
  6.  
  7. Example:
  8.        To let your batch file skip something 
  9.        and go on  somewhere else use this 
  10.        type of command in your BAT file:
  11.           Echo off
  12.           format a: /s
  13.           if not errorlevel 1 GOTO end
  14.           echo An error ocurred during 
  15.           formatting
  16.           :end
  17.           echo End of batch prog.