Leaked source code of windows server 2003
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.

54 lines
1.8 KiB

  1. @echo Off
  2. Rem
  3. Rem This script will update Microsoft SNA Server 3.0 so that it runs
  4. Rem correctly under Windows Terminal Server.
  5. Rem
  6. Rem This script will register several SNA dll's as system global, which
  7. Rem allows the SNA server to work correctly in a multi-user environment.
  8. Rem
  9. Rem Important! If running this script from a command prompt, be sure to
  10. Rem use a command prompt that has been opened AFTER SNA 3.0 was installed.
  11. Rem
  12. Rem #########################################################################
  13. If Not "A%SNAROOT%A" == "AA" Goto Cont1
  14. Echo.
  15. Echo Unable to complete Multi-user Application Tuning because the
  16. Echo SNAROOT environment variable isn't set. This could occur if
  17. Echo the command shell being used to run this script was opened
  18. Echo before SNA Server 3.0 was installed.
  19. Echo.
  20. Pause
  21. Goto Cont2
  22. Rem #########################################################################
  23. :Cont1
  24. Rem Stop the SNA service
  25. net stop snabase
  26. Rem Register SNA DLL's as system global
  27. Register %SNAROOT%\SNADMOD.DLL /SYSTEM >Nul: 2>&1
  28. Register %SNAROOT%\SNAMANAG.DLL /SYSTEM >Nul: 2>&1
  29. Register %SNAROOT%\WAPPC32.DLL /SYSTEM >Nul: 2>&1
  30. Register %SNAROOT%\DBGTRACE.DLL /SYSTEM >Nul: 2>&1
  31. Register %SNAROOT%\MNGBASE.DLL /SYSTEM >Nul: 2>&1
  32. Register %SNAROOT%\SNATRC.DLL /SYSTEM >Nul: 2>&1
  33. Register %SNAROOT%\SNALM.DLL /SYSTEM >Nul: 2>&1
  34. Register %SNAROOT%\SNANW.DLL /SYSTEM >Nul: 2>&1
  35. Register %SNAROOT%\SNAIP.DLL /SYSTEM >Nul: 2>&1
  36. Register %SNAROOT%\SNABASE.EXE /SYSTEM >Nul: 2>&1
  37. Register %SNAROOT%\SNASERVR.EXE /SYSTEM >Nul: 2>&1
  38. Register %SNAROOT%\SNASII.DLL /SYSTEM >Nul: 2>&1
  39. Register %SNAROOT%\SNALINK.DLL /SYSTEM >Nul: 2>&1
  40. Rem Restart the SNA service
  41. net start snabase
  42. Echo SNA Server 3.0 Multi-user Application Tuning Complete
  43. Pause
  44. :Cont2