home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 December / SOFM_Dec1995.bin / pc / os2 / vpascal / bin / vpvio.cmd < prev   
OS/2 REXX Batch file  |  1995-10-31  |  701b  |  25 lines

  1. @ECHO OFF
  2. REM ********************************************
  3. REM * Compiles and links text mode application *
  4. REM ********************************************
  5.  
  6. IF "%1" == "/?" GOTO HELP
  7. IF "%1" == "-?" GOTO HELP
  8. IF "%1" == "" GOTO HELP
  9.  
  10. SET LINK386=/BAT /NOL /PM:NOVIO /BASE:0x10000 /A:4 /EXEPACK
  11. SET LIB=%VPLIB%
  12. VPC %1.PAS %2 %3 %4 %5 %6 %7 %8 %9
  13. IF ERRORLEVEL 1 GOTO EXIT
  14. LINK386 @%VPOUT%\%1.LNK;
  15. GOTO EXIT
  16.  
  17. :HELP
  18. ECHO Compiles and links text mode application. Invokes VPC and LINK386.
  19. ECHO Usage: VPVIO PrgName [Options]
  20. ECHO Where:
  21. ECHO   PrgName    Name of the program file without path and extension
  22. ECHO   Options    One or several valid VPC command line switches
  23.  
  24. :EXIT
  25.