|
|
@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1) || powershell start-process \"%0\" -verb runas && exit
@echo off
mode con cols=35 lines=10
@rem Detect if OS is 32 or 64 bit
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
if %OS%==32BIT GOTO 32BIT
if %OS%==64BIT GOTO 64BIT
:32BIT
set "dqpath=%~dp0x32" >NUL 2>&1
GOTO Addforce
:64BIT
set "dqpath=%~dp0x64" >NUL 2>&1
GOTO Addforce
:Addforce
@rem 一级菜单
Reg.exe delete "HKCR\*\shell\HunterLock" /f >NUL 2>&1
Reg.exe add "HKCR\*\shell\HunterLock" /v "Icon" /t REG_SZ /d "%dqpath%\LockHunter.exe" /f >NUL 2>&1
Reg.exe add "HKCR\*\shell\HunterLock" /v "MUIVerb" /t REG_SZ /d "解锁或删除" /f >NUL 2>&1
Reg.exe add "HKCR\*\shell\HunterLock" /v "SubCommands" /t REG_SZ /d "ForceUnlocker;ForceDel" /f >NUL 2>&1
Reg.exe delete "HKCR\AllFilesystemObjects\shell\HunterLock" /f >NUL 2>&1
Reg.exe add "HKCR\AllFilesystemObjects\shell\HunterLock" /v "Icon" /t REG_SZ /d "%dqpath%\LockHunter.exe" /f >NUL 2>&1
Reg.exe add "HKCR\AllFilesystemObjects\shell\HunterLock" /v "MUIVerb" /t REG_SZ /d "解锁或删除" /f >NUL 2>&1
Reg.exe add "HKCR\AllFilesystemObjects\shell\HunterLock" /v "SubCommands" /t REG_SZ /d "ForceUnlocker;ForceDel" /f >NUL 2>&1
Reg.exe delete "HKCR\Directory\shell\HunterLock" /f >NUL 2>&1
Reg.exe add "HKCR\Directory\shell\HunterLock" /v "Icon" /t REG_SZ /d "%dqpath%\LockHunter.exe" /f >NUL 2>&1
Reg.exe add "HKCR\Directory\shell\HunterLock" /v "MUIVerb" /t REG_SZ /d "解锁或删除" /f >NUL 2>&1
Reg.exe add "HKCR\Directory\shell\HunterLock" /v "SubCommands" /t REG_SZ /d "ForceUnlocker;ForceDel" /f >NUL 2>&1
@rem 二级菜单
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceUnlocker" /v "Icon" /t REG_SZ /d "imageres.dll,-59" /f >NUL 2>&1
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceUnlocker" /v "MUIVerb" /t REG_SZ /d "强制解锁" /f >NUL 2>&1
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceUnlocker\Command" /ve /t REG_SZ /d "%dqpath%\Nsudo.exe -U:T -P:E LockHunter.exe -k -u -sm \"%%L\"" /f >NUL 2>&1
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceDel" /v "Icon" /t REG_SZ /d "imageres.dll,-5102" /f >NUL 2>&1
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceDel" /v "MUIVerb" /t REG_SZ /d "强制删除" /f >NUL 2>&1
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ForceDel\Command" /ve /t REG_SZ /d "%dqpath%\Nsudo.exe -U:T -P:E LockHunter.exe -k -d -dp -sm \"%%L\"" /f >NUL 2>&1
echo:
echo 恭喜,右键已添加强力删除功能 !
timeout /t 3 >NUL 2>&1
exit
|
|