home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / turbo_c / tc2pat2.zip / PATSTAT.BAT < prev    next >
DOS Batch File  |  1988-12-08  |  864b  |  39 lines

  1. echo off
  2. echo 
  3. echo This batch file will install the replacement .OBJ module to fix
  4. echo the stat() function in the tiny memory model.
  5. echo 
  6. echo Syntax:  PATSTAT [LIB-directory]
  7. echo Example: PATSTAT C:\TC\LIB\
  8. echo 
  9. echo If you specify a path name, the last '\' is required.  If no
  10. echo path name is specified, the .LIB files in the current 
  11. echo directory are used.  
  12. echo 
  13. echo TLIB.EXE must be in the current directory or on your DOS exec path.
  14. echo 
  15. echo Hit any key to patch stat, ^C to exit
  16. echo 
  17. pause
  18.  
  19. if not exist %1*.lib goto HELP
  20.  
  21. copy stat.obj tzset.obj
  22. tlib /E /0 %1cs -+tzset.obj
  23. if errorlevel 1 goto ERROR
  24. del tzset.obj
  25.  
  26. if exist %1*.bak del %1*.bak
  27. goto DONE
  28.  
  29. :ERROR
  30. echo ERROR adding module to library
  31. echo installation terminated
  32. goto DONE
  33.  
  34. :HELP
  35. echo 
  36. echo ERROR: invalid path specification
  37.  
  38. :DONE
  39.