home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / parsomat.zip / develop.bat < prev    next >
DOS Batch File  |  2001-07-15  |  2KB  |  58 lines

  1.     @ECHO OFF
  2.  
  3.     REM ---------------------------------------------------------------------
  4.     REM - Here we check that we have at least three parameters:
  5.     REM - The save position, the POM file, and the input file.
  6.     REM ---------------------------------------------------------------------
  7.     IF NOT (%3) == () GOTO OKPARM
  8.     ECHO Please see "Effective Use of Batch Files" in the documentation
  9.     ECHO file (MANUAL.TXT) for an explanation of the DEVELOP.BAT batch file.
  10.     GOTO QUIT
  11. :OKPARM
  12.  
  13. :MENU
  14.     REM ---------------------------------------------------------------------
  15.     REM - The PSMENU menu utility is included in the standard Parse-O-Matic
  16.     REM - package.  Type PSMENU_D at the DOS prompt for a brief description.
  17.     REM ---------------------------------------------------------------------
  18.     PSMENU_D POM DEVELOP %1
  19.     IF ERRORLEVEL 10 GOTO QUIT
  20.     IF ERRORLEVEL  4 GOTO OUTPUT
  21.     IF ERRORLEVEL  3 GOTO PARSE
  22.     IF ERRORLEVEL  2 GOTO EDIT
  23.     IF ERRORLEVEL  1 GOTO INPUT
  24.  
  25. :INPUT
  26.     SEE %3
  27.     GOTO MENU
  28.  
  29. :EDIT
  30.     REM ---------------------------------------------------------------------
  31.     REM - You may wish to change the following line to use a different
  32.     REM - text editor.  (QEdit and Boxer are good shareware text editors.
  33.     REM - Windows users may wish to use NotePad.)
  34.     REM ---------------------------------------------------------------------
  35.     EDIT %2
  36.     GOTO MENU
  37.  
  38. :PARSE
  39.     REM ---------------------------------------------------------------------
  40.     REM - We include parameters 4, 5 and 6 here, in case you wish to add the
  41.     REM - /L or /Q parameters to the command line.  In most cases, however,
  42.     REM - they will be null (empty).
  43.     REM ---------------------------------------------------------------------
  44.     POM %2 %3 %4 %5 %6
  45.     GOTO MENU
  46.  
  47. :OUTPUT
  48.     IF NOT (%4) == () GOTO OKOUT
  49.     ECHO You did not specify an output file.  Perhaps your POM file
  50.     ECHO specifies the output file with the OFILE command.
  51.     GOTO MENU
  52.     PAUSE
  53. :OKOUT
  54.     SEE %4
  55.     GOTO MENU
  56.  
  57. :QUIT
  58.