|
本帖最后由 BEIKING 于 2024-1-12 18:17 编辑
- @echo off
- Set Pkey=&Set Skey=&for /f "delims=" %%i in ('reg query "HKCR\Local Settings\MrtCache" /s /d /f "BMP 图像" 2^>nul') do if not defined Pkey (Set "Pkey=%%i") else if not defined Skey for /f "tokens=1,2,* delims=}" %%j in ('echo %%i') do Set "Skey=%%j}"
- if defined PKey if defined Skey echo 找到注册表项!& reg add "%Pkey%" /f /v "%Skey:~4%" /d ""&Pause&Exit
- echo 未找到注册表项!&Pause&Exit
- Pause
复制代码
|
评分
-
查看全部评分
|