@Echo Off
Title regsvrHashtab
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
SetLocal EnableDelayedExpansion
if "%PROCESSOR_ARCHITECTURE%"=="x86" copy /y "%~dp0HashTab32-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
If "%PROCESSOR_ARCHITECTURE%"=="AMD64" "%~dp0HashTab64-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
regedit /s "%~dp0Enable.reg"
