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.

56 lines
1.4 KiB

  1. @echo off
  2. echo Windows NT WINS Server Performance Counters Removal
  3. echo.
  4. echo This removal script makes the following assumptions:
  5. echo.
  6. echo o The UNLODCTR utility is on the path.
  7. echo.
  8. echo o This script is run from the %SystemRoot%\system32 directory.
  9. echo.
  10. echo If these assumptions are not valid, please correct and try again.
  11. echo Press CTRL-C to exist now, otherwise
  12. pause
  13. if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
  14. if (%SystemRoot%)==() goto BadWinDir
  15. if not exist ntoskrnl.exe goto BadWinDir
  16. if not exist winsctrs.h goto CannotRemove
  17. if not exist winsctrs.ini goto CannotRemove
  18. if not exist winsctrs.reg goto CannotRemove
  19. if exist winsctrs.dll del winsctrs.dll >nul 2>&1
  20. unlodctr WINS
  21. if errorlevel 1 goto RemoveError
  22. echo.
  23. echo Windows NT WINS Server Performance Counters Removal successful.
  24. goto Done
  25. :RemoveError
  26. echo.
  27. echo Cannot remove the Windows NT WINS Server Performance Counters.
  28. goto Done
  29. :CannotRemove
  30. echo This removal script MUST be run from the %SystemRoot%\system32
  31. echo directory on the appropriate Windows NT Resource Kit disk.
  32. goto Done
  33. :BadProcessor
  34. echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
  35. echo proper processor type (X86, MIPS, etc) before running this script.
  36. goto Done
  37. :BadWinDir
  38. echo The SystemRoot environment variable must point to the Windows NT
  39. echo installation directory (example C:\NT).
  40. goto Done
  41. :Done