@ECHO OFF&PUSHD %~DP0 &TITLE 启用HashTab
Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行！&&PAUSE >NUL&&EXIT)
Rd "%WinDir%\System32\test_permissions" 2>NUL
if exist "%Windir%\SysWOW64" GOTO X64
if not exist "%Windir%\SysWOW64" GOTO X86
:X64
copy HashTab64-6.0.0.28.dll "%Windir%\System32\HashTab64-6.0.0.28.dll" >NUL
regsvr32 /s "%Windir%\System32\HashTab64-6.0.0.28.dll" >NUL
GOTO ED
:X86
copy HashTab32-6.0.0.28.dll "%Windir%\System32\HashTab32-6.0.0.28.dll" >NUL
regsvr32 /s "%Windir%\System32\HashTab32-6.0.0.28.dll" >NUL
:ED
reg add "HKEY_CURRENT_USER\SOFTWARE\HashTab\Algorithms\CRC32" /v "Enabled" /d 0x00000001 /t REG_DWORD /f >NUL
reg add "HKEY_CURRENT_USER\SOFTWARE\HashTab\Algorithms\MD5" /v "Enabled" /d 0x00000001 /t REG_DWORD /f >NUL
reg add "HKEY_CURRENT_USER\SOFTWARE\HashTab\Algorithms\SHA-1" /v "Enabled" /d 0x00000001 /t REG_DWORD /f >NUL
ECHO.&ECHO.完成! &PAUSE >NUL 2>NUL