试试- @echo off
- for /f "tokens=1,2,* " %%i in ('REG QUERY "HKEY_LOCAL_MACHINE\333" 2^>nul^|find /i "444"') do set "QQPath=%%k"
- if not "%QQPath%"=="" (
- set zongcishu=6
- set /a shengyu=%zongcishu%-%QQPath%
- echo 您的文件数为%zongcishu% 已经删除数为%QQPath% 剩余数为%shengyu%
- ) else echo 预设的固定字符
- set "FileName=高级软件.exe"
- for %%a in (C D E F) do (
- if exist %%a:\nul (
- pushd %%a:\
- for /r %%b in ("*%FileName%") do (
- if /i "%%~nxb" equ "%FileName%" (
- echo.文件路径为 %%b
- )
- )
- popd
- )
- )
- reg delete "HKEY_LOCAL_MACHINE\333" /v "444" /f 2>nul&&echo 清除注册表项完成!||echo 预设的固定字符
- pause
复制代码
|