回复 5# 857185187 - @echo off
- set "key=HKLM\SYSTEM\CurrentControlSet\Services\FltMgr"
- setlocal enabledelayedexpansion
- set "s=!key!" & set "l=0"
- for %%i in (128 64 32 16 8 4 2 1) do if "!s:~%%i!" neq "" set /a l+=%%i & set "s=!s:~%%i!"
- for /l %%i in (0,1,!l!) do if "!key:~%%i,1!" == "\" set "str=!key:~,%%i!"
- echo;!str!
- pause
复制代码
|