|
文件 和 目录 仅解锁(保持原有文件目录结构)
本帖最后由 cutebe 于 2025-1-9 18:04 编辑
- 反斜杠被吃,添加则代码被吃<img src="http://bbs.c3.wuyou.net/static/image/smiley/default/shocked.gif" border="0" smilieid="197" alt="">
复制代码
@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\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 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 "Commands" /t REG_SZ /d "ForceUnlocker;ForceDel" /f >NUL 2>&1
Reg.exe add "HKCR\AllFilesystemObjects\shell\HunterLock\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 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\Command" /ve /t REG_SZ /d "%dqpath%\Nsudo.exe -U:T -P:E LockHunter.exe -k -u -sm \"%%L\"" /f >NUL 2>&1
echo:
echo 恭喜,右键已添加强力解锁功能 !
timeout /t 3 >NUL 2>&1
exit |
|