home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 18 / 18.iso / w / w419 / 1.ddi / TOCC.BAT < prev    next >
Encoding:
DOS Batch File  |  1993-02-28  |  1.3 KB  |  58 lines

  1. @echo off
  2. echo off
  3. if not exist %1\System.ini goto Error
  4. if     exist %1\MSDOS.EXE   goto Error
  5. if not exist %1\System\Commdlg.dll goto Error
  6. if not exist %1\System\ddeml.dll goto Error
  7. if not exist %1\System\shell.dll goto Error
  8.  
  9. if exist CWin31RC.dat goto L2
  10.  
  11. if exist CWin31RC.da_ goto L1
  12. A:
  13. if exist CWin31RC.da_ goto L1
  14. B:
  15. if exist CWin31RC.da_ goto L1
  16. goto Error
  17. :L1
  18. expand CWin31RC.DA_ %1\CWin31RC.DAT > nul
  19. expand PutAllRC.EX_ %1\PutAllRC.EXE > nul
  20. %1\PutAllRC %1\CWin31RC.DAT %1
  21. del %1\CWin31RC.DAT
  22. del %1\PutAllRC.EXE
  23.  
  24. if not exist cwh.da_ goto Exit
  25. if not exist %1\winhelp.exe goto Exit
  26. copy %1\winhelp.exe C:\ >nul
  27. expand PutRes.EX_ C:\PutRes.EXE >nul
  28. expand cwh.da_      C:\cwh.dat >nul
  29. C:
  30. cd\
  31. if not exist cwh.dat goto Exit
  32. if not exist winhelp.exe goto Exit
  33. if not exist putres.exe goto Exit
  34. Putres cwh.dat
  35. copy winhelp.exe %1 >nul
  36. del winhelp.exe
  37. del cwh.dat
  38. del putres.exe
  39. goto Exit
  40.  
  41. :L2
  42. PutAllRC CWin31RC.DAT %1
  43.  
  44. if not exist cwh.dat goto Exit
  45. if not exist %1\winhelp.exe goto Exit
  46. copy %1\winhelp.exe >nul
  47. if not exist winhelp.exe goto Exit
  48. Putres cwh.dat
  49. copy winhelp.exe %1 >nul
  50. del winhelp.exe
  51. goto Exit
  52.  
  53. :Error
  54. echo [Usage]
  55. echo    TOCC c:\windows
  56. echo where C:\WINDOWS is your Windows 3.1 directory,
  57. :Exit
  58.