home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 18 / 18.iso / w / w419 / 1.ddi / NOCC.BAT < prev    next >
Encoding:
DOS Batch File  |  1993-02-28  |  1.3 KB  |  59 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 Win31RC.dat goto L2
  10.  
  11. if exist Win31RC.da_ goto L1
  12. A:
  13. if exist Win31RC.da_ goto L1
  14. B:
  15. if exist Win31RC.da_ goto L1
  16. goto Error
  17. :L1
  18. expand    Win31RC.DA_ %1\Win31RC.DAT > nul
  19. expand PutAllRC.EX_ %1\PutAllRC.EXE > nul
  20. %1\PutAllRC %1\Win31RC.dat %1
  21. del %1\Win31RC.DAT
  22. del %1\PutAllRC.EXE
  23.  
  24. if not exist wh.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 wh.da_ C:\wh.dat >nul
  29. C:
  30. cd\
  31. if not exist wh.dat goto Exit
  32. if not exist winhelp.exe goto Exit
  33. if not exist putres.exe goto Exit
  34. Putres wh.dat
  35. copy winhelp.exe %1 >nul
  36. del winhelp.exe
  37. del wh.dat
  38. del putres.exe
  39. goto Exit
  40.  
  41. :L2
  42. PutAllRC Win31RC.dat %1
  43.  
  44. if not exist wh.da_ 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 wh.dat
  49. copy winhelp.exe %1 >nul
  50. del winhelp.exe
  51. goto Exit
  52.  
  53. :Error
  54. echo [Usage]
  55. echo    NOCC c:\windows
  56. echo where C:\WINDOWS is your Windows 3.1 directory,
  57. echo and WIN31RC.DAT must at current directory.
  58. :Exit
  59.