Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.8 KiB

  1. @echo off
  2. if "%1" == "" goto usage
  3. if not exist %1\netlib\netapi.dll goto notlmroot
  4. rename %1\netlib\netapi.dll netapi.mso >NUL 2>&1
  5. if errorlevel 1 goto lmroot
  6. rename %1\netlib\netapi.mso netapi.dll >NUL 2>&1
  7. goto lmrootinv
  8. :lmroot
  9. if not exist %1\netprog\backacc.exe goto backerr1
  10. if not exist %1\setup.exe goto seterr1
  11. if not exist \netprog\backacc.ex$ goto backerr2
  12. if not exist \20setup.ex$ goto seterr2
  13. if not exist \netprog\decomp.exe goto decmperr
  14. \netprog\decomp -f \netprog\backacc.ex$ %1\netprog\backacc.exe
  15. if errorlevel 1 goto backerr3
  16. \netprog\decomp -f \20setup.ex$ %1\setup.exe
  17. if errorlevel 1 goto seterr3
  18. \netprog\decomp -f \20aclapi.dl$ %1\netlib\aclapi.dll
  19. if errorlevel 1 goto seterr4
  20. goto exit
  21. :decmperr
  22. echo ERROR - \netprog\decomp.exe does not exist
  23. goto usage
  24. :seterr1
  25. echo ERROR - %1\setup.exe does not exist
  26. goto usage
  27. :seterr2
  28. echo ERROR - \20setup.ex$ does not exist
  29. goto usage
  30. :seterr3
  31. echo ERROR - Decompressing \20setup.ex$ as %1\setup.exe
  32. goto usage
  33. :seterr3
  34. echo ERROR - Decompressing \20aclapi.dl$ as %1\netlib\aclapi.dll
  35. goto usage
  36. :backerr1
  37. echo ERROR - %1\netprog\backacc.exe does not exist
  38. goto usage
  39. :backerr2
  40. echo ERROR - \netprog\backacc.ex$ does not exist
  41. goto usage
  42. :backerr3
  43. echo ERROR - Decompressing \netprog\backacc.ex$ as %1\netprog\backacc.exe
  44. goto usage
  45. :notlmroot
  46. echo ERROR - Could not find %1\netlib\netapi.dll
  47. goto usage
  48. :lmrootinv
  49. echo ERROR - %1\netlib\netapi.dll was not locked.
  50. echo Please give the correct LANROOT.
  51. goto usage
  52. :usage
  53. echo ****
  54. echo To prepare your LAN Manager 2.0 installation for detaching (assuming
  55. echo your floppy drive is A: and your LAN Manager 2.0 software is installed
  56. echo in C:\LANMAN):
  57. echo .
  58. echo Insert the LAN Manager 2.2 OS/2 Setup disk in drive A: and type:
  59. echo A:
  60. echo 20CLEAN C:\LANMAN
  61. echo ****
  62. goto exit
  63. :exit
  64. echo on