Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

70 lines
1.7 KiB

@echo off
@set CTRS=gdctrs
@set SERVICE=Gopher
if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
if (%WINDIR%)==() set WINDI=%systemroot%
if not exist %WINDIR%\system32\ntoskrnl.exe goto BadWinDir
if not exist gdrctrs.bat goto CannotRemove
if not exist %CTRS%.h goto CannotRemove
if not exist %CTRS%.ini goto CannotRemove
if not exist %CTRS%.reg goto CannotRemove
if not exist %PROCESSOR_ARCHITECTURE%\%CTRS%.dll goto TryLocalDir
set GDCTRS=%PROCESSOR_ARCHITECTURE%\%CTRS%.dll
goto StartInstall
:TryLocalDir
if not exist %CTRS%.dll goto CannotInstall
set GDCTRS=%CTRS%.dll
:StartInstall
echo Windows NT %SERVICE% Server Performance Counters Removal
echo.
echo This removal script makes the following assumptions:
echo.
echo o The UNLODCTR utility is on the path.
echo.
echo o This script is run from the %SERVICE% directory.
echo.
echo If these assumptions are not valid, please correct and try again.
echo Press CTRL-C to exist now, otherwise
pause
if exist %WINDIR%\system32\%CTRS%.dll del %WINDIR%\system32\%CTRS%.dll >nul 2>&1
unlodctr GopherSvc
if errorlevel 1 goto RemoveError
echo.
echo Windows NT %SERVICE% Server Performance Counters Removal successful.
goto Done
:RemoveError
echo.
echo Cannot remove the Windows NT %SERVICE% Server Performance Counters.
goto Done
:CannotRemove
echo This removal script MUST be run from the %CTRS%
echo directory on the appropriate Windows NT Resource Kit disk.
goto Done
:BadProcessor
echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
echo proper processor type (X86, MIPS, etc) before running this script.
goto Done
:BadWinDir
echo The WINDIR environment variable must point to the Windows NT
echo installation directory (i.e. C:\NT).
goto Done
:Done