
批處理如何查找注冊表he
x(2)值最后由 tiandyoin 于 -12-24 10:01想用 findstr 找出注冊表的 he
x(2) 值,自己研究一夜的式子,但未能適用所有情況:
- rem 把 '' 雙引號加反斜杠去掉
- set $=!line:=!
- rem 查找 形式如 @=hex(2):... 或 =hex(2):.. 或 ...=hex(2):
- cd.&echo;!$!!$!| >nul findstr /i/r /c:^[ ]*@[ ]*=[ ]*hex(2): /c:^[ ]*[^]*[ ]*=[ ]*hex^(2^):
nclick="copycode($('code0'));">復制代碼
用例:
- [HKEY_CURRENT_USERtiandyointest18]
- @=hex(2):25,00,30,00,24,00,00,00
- =hex(2):25,00,30,00,24,00,00,00
- @=hex(2):25,00,30,00,24,00,
- 00,00
- normal=hex(2):25,00,30,00,24,00,00,00
- hello world=hex(2):25,00,30,00,24,00,00,00
- =hex(2):25,00,30,00,24,00,00,00
- abc=hex(2):25,00,30,00,24,00,00,
- 00
- hello world\=hex(2):25,00,30,00,24,00,00,00
- A B C=hex(2):00,00
- A=B=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,00,00
- A==hex(2):=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,00,00
nclick="copycode($('code1'));">復制代碼