home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / te2a133t.zip / InstFix.Cmd next >
OS/2 REXX Batch file  |  1996-12-13  |  1KB  |  56 lines

  1. @echo off
  2.  
  3. REM Batch file to correct sporadic problems with TE/2 Classic install
  4. REM not extracting files from one of the installation archives.
  5. REM
  6. REM Run this file with these parameters:
  7. REM
  8. REM    INSTFIX PathToInstallFiles PathToTE2Directory
  9. REM
  10.  
  11. if "%2" == "" goto usage
  12. if "%1" == "" goto usage
  13.  
  14. if not exist %1\TE2INST.000 goto notFound1
  15. if not exist %1\TE2INST.002 goto notFound1
  16. echo on
  17. copy /b %1\TE2INST.000+%1\TE2INST.002 %2\iWork.Exe
  18. @echo off
  19. if not exist %2\iWork.Exe goto notFound2
  20. echo on
  21. %2\iWork %2 /o
  22. del %2\iWork.exe
  23. @echo off
  24. goto TheEnd
  25.  
  26. :notFound1
  27. echo INSTFIX cannot locate one of the files %1\TE2INST.000 or %1\TE2INST.002
  28. echo Make sure that the first parameter specifies the directory containing
  29. echo your TE/2 installation files.
  30. echo.
  31. echo.
  32. goto usage
  33.  
  34. :notFound2
  35. echo INSTFIX was not able to create a file in the %2 directory.
  36. echo Make sure that the second parameter refers to your installed TE/2
  37. echo directory.
  38. echo.
  39. echo.
  40. goto usage
  41.  
  42. :usage
  43. echo Usage: INSTFIX PathToInstallFiles PathToTE2Directory
  44. echo.
  45. echo Example (source files on a floppy in drive A):
  46. echo.
  47. echo        INSTFIX A: C:\TE2
  48. echo.
  49. echo.
  50. echo Example (source file in a temp directory on HD):
  51. echo.
  52. echo        INSTFIX D:\TEMP C:\TE2
  53. echo.
  54.  
  55. :TheEnd
  56.