Board logo

标题: [注册表类] 批处理如何将注册表中的二进制转成字符? [打印本页]

作者: tireless    时间: 2009-1-16 16:30     标题: 批处理如何将注册表中的二进制转成字符?

c:\>reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explor
er\Discardable\PostSetup\ShellNew /v 文本文档

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable
\PostSetup\ShellNew
    文本文档    REG_BINARY      000000000000000000000000000087652C67876563680000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000002E00
7400780074
0000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000007400
78007400660069006C0065
0000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000FFFFFFFF000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000


c:\>

作者: pusofalse    时间: 2009-1-16 18:11

好像是根据ASCII来的。见过字符转ASCII,没见过ASCII转字符,貌似只有用事先一一定义的方法了。除非借助第三方~
作者: tireless    时间: 2009-1-16 18:42

听说是UNCODE编码。那...字符如何转UNCODE编码?
作者: pusofalse    时间: 2009-1-16 19:24

  1. @echo Off
  2. set "chars=74 78 74 66 69 6c 65"
  3. For %%a in (%chars%) do (chr.exe %%a)
  4. Pause>nul
复制代码
chr.exe ;==>http://pusofalse.ys168.com/  swd:bathome




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2