home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / patches / os2fix / os2fix.bat next >
DOS Batch File  |  1993-09-03  |  1KB  |  46 lines

  1. @echo off
  2.  
  3. if x==x%1 goto help
  4.  
  5. if not exist %1\bin\dosxnt.exe goto missing
  6.  
  7. patch /nop /q %1\bin os2fix
  8. if errorlevel 1 goto done
  9.  
  10. echo.
  11. echo The file DOSXNT.EXE has been successfully updated and
  12. echo the command line tools of Visual C++ 1.0 may now be
  13. echo run under OS/2. 
  14. echo.
  15. echo VERY IMPORTANT:  You must change the "DPMI_DOS_API" setting  
  16. echo for your DOS command shell to "enabled" for DOSXNT.EXE to
  17. echo run properly.  See the READ.ME file for more information.
  18. echo.
  19.  
  20. goto done
  21.  
  22. :help
  23.  
  24. echo.
  25. echo This batch file updates the Microsoft Visual C++ compiler
  26. echo package so that the command line tools of the package
  27. echo (CL, NMAKE, LINK, etc.) can run under OS/2 2.1.  To use
  28. echo the batch file, give the path of the top level directory
  29. echo where you have installed the Visual C++ on your disk as
  30. echo a command line argument to the batch file.  Example:
  31. echo.
  32. echo         OS2FIX C:\MSVC.100
  33. echo.
  34.  
  35. goto done  
  36.  
  37. :missing
  38.  
  39. echo.
  40. echo The file DOSXNT.EXE is not located in the BIN subdirectory
  41. echo of the directory "%1".  Please correct the spelling of
  42. echo the directory "%1" and run the OS2FIX batch file again.
  43. echo.
  44.  
  45. :done
  46.