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. if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
  3. if (%SystemRoot%)==() goto BadWinDir
  4. if not exist %SystemRoot%\system32\ntoskrnl.exe goto BadWinDir
  5. if not exist remove.bat goto CannotRemove
  6. if not exist winsctrs.h goto CannotRemove
  7. if not exist winsctrs.ini goto CannotRemove
  8. if not exist winsctrs.reg goto CannotRemove
  9. echo Windows NT WINS Server Performance Counters Removal
  10. echo.
  11. echo This removal script makes the following assumptions:
  12. echo.
  13. echo o The UNLODCTR utility is on the path.
  14. echo.
  15. echo.
  16. echo If this assumptions are not valid, please correct and try again.
  17. echo Press CTRL-C to exist now, otherwise
  18. pause
  19. if exist %SystemRoot%\system32\winsctrs.dll del %SystemRoot%\system32\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 WINSCTRS
  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 (i.e. C:\NT).
  40. goto Done
  41. :Done