找回密码
 加入
搜索
查看: 1853|回复: 8

关于Au3调用dos命令写入注册表(二进制)问题?

  [复制链接]
发表于 2010-1-31 15:31:04 | 显示全部楼层 |阅读模式
本帖最后由 sxzcz 于 2010-2-2 21:06 编辑

原问题:用Au3以dos命令把这段[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"UIHost"="C: \\WINDOWS\\system32\\logonui.exe"写入注册表的方法有人已经介绍,Run(@ComSpec&' /c reg add HKLM\SOFTWARE\Microsoft\Windows" "NT\CurrentVersion\Winlogon /v UIHost /t REG_EXPAND_SZ /d %SystemRoot%\system32\logonui.exe /f',@ScriptDir,@SW_HIDE)
详情见帖子http://www.autoitx.com/forum.php?mod=viewthread&tid=12745
现在出现新问题:如何把二进制之内的写入呢?如下:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpaper\MRU]
"43"=hex:43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,00,5c,00,6b,\
  00,70,00,32,00,30,00,30,00,33,00,5f,00,32,00,4c,00,2e,00,62,00,6d,00,70,00,\
  00,00,00,00,70,00,00,00,70,00,00,00,40,06,09,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,78,01,09,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,d8,3b,12,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,08,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,78,01,09,00,00,00,00,00,d8,2b,12,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,78,01,09,00,00,00,00,00,e0,3b,12,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,78,01,09,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,85,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,78,01,09,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,d8,2b,12,00,\
  00,00,00,00,01,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,d0,2b,12,00,00,00,00,00,00,00,00,00,00,00,00,00,d0,2b,\
  12,00,08,10,00,00,d8,2b,12,00,00,00,00,00,78,01,09,00,08,10,00,00,5c,d7,92,\
  7c,ff,f0,80,7c,10,02,00,00,58,dd,0e,00,ac,f4,fd,00,80,f4,fd,00,95,f0,80,7c,\
  e0,f6,fd,00,9e,dd,0e,00,18,00,00,00,e6,f0,80,7c,c4,af,0d,00,c1,f0,80,7c,cd,\
  7a,f4,77,38,fd,fd,00,04,01,00,00,00,00,00,00,94,0f,00,00,58,dd,0e,00,00,a0,\
  fd,7f,00,00,00,00,08,00,00,00,78,f4,fd,00,46,9e,74,7d,ec,f4,fd,00,00,04,00,\

我试着这样,但不行:Run(@ComSpec&' /c reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpaper\MRU /v 43 /t REG_BINARY /d %SystemRoot%\43003a005c00570049004e0044004f00570053005c006b00700032003000300033005f0032004c002e0062006d0070000000000070000000700000004006090000000000000000000000000000000000000000000000000078010900000000000000000000000000000000000000000000000000000000000000000000000000d83b120000000000000000000000000000000000000000000000000000000000080000000000000000000000000000007801090000000000d82b1200000000000000000000000000000000007801090000000000e03b12000000000000000000000000007801090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085000000000000000000000000000000000000000000000000000000780109000000000000000000000000000000000000000000000000000000000000000000d82b12000000000001020000000000000000000000000000000000000000000000000000d02b1200000000000000000000000000d02b120008100000d82b12000000000078010900081000005cd7927cfff0807c1002000058dd0e00acf4fd0080f4fd0095f0807ce0f6fd009edd0e0018000000e6f0807cc4af0d00c1f0807ccd7af47738fdfd000401000000000000940f000058dd0e0000a0fd7f000000000800000078f4fd00469e747decf4fd00000400000003000000c04e51623dc201, /f',@ScriptDir,@SW_HIDE)
发表于 2010-1-31 16:34:32 | 显示全部楼层
帮你顶起来……
发表于 2010-1-31 18:10:32 | 显示全部楼层
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpaper\MRU" /f /v "43" /t REG_BINARY /d 43003a005c00570049004e0044004f00570053005c006b00700032003000300033005f0032004c002e0062006d0070000000000070000000700000004006090000000000000000000000000000000000000000000000000078010900000000000000000000000000000000000000000000000000000000000000000000000000d83b120000000000000000000000000000000000000000000000000000000000080000000000000000000000000000007801090000000000d82b1200000000000000000000000000000000007801090000000000e03b12000000000000000000000000007801090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085000000000000000000000000000000000000000000000000000000780109000000000000000000000000000000000000000000000000000000000000000000d82b12000000000001020000000000000000000000000000000000000000000000000000d02b1200000000000000000000000000d02b120008100000d82b12000000000078010900081000005cd7927cfff0807c1002000058dd0e00acf4fd0080f4fd0095f0807ce0f6fd009edd0e0018000000e6f0807cc4af0d00c1f0807ccd7af47738fdfd000401000000000000940f000058dd0e0000a0fd7f000000000800000078f4fd00469e747decf4fd00000400\
 楼主| 发表于 2010-1-31 19:32:50 | 显示全部楼层
试过楼上“即即”代码 不行,等待中...
发表于 2010-1-31 23:37:40 | 显示全部楼层
;楼主自己弄的基本对了,有点小错误而已

Run(@ComSpec&' /c reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpaper\MRU /v 43 /t REG_BINARY /d 43003a005c00570049004e0044004f00570053005c006b00700032003000300033005f0032004c002e0062006d0070000000000070000000700000004006090000000000000000000000000000000000000000000000000078010900000000000000000000000000000000000000000000000000000000000000000000000000d83b120000000000000000000000000000000000000000000000000000000000080000000000000000000000000000007801090000000000d82b1200000000000000000000000000000000007801090000000000e03b12000000000000000000000000007801090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085000000000000000000000000000000000000000000000000000000780109000000000000000000000000000000000000000000000000000000000000000000d82b12000000000001020000000000000000000000000000000000000000000000000000d02b1200000000000000000000000000d02b120008100000d82b12000000000078010900081000005cd7927cfff0807c1002000058dd0e00acf4fd0080f4fd0095f0807ce0f6fd009edd0e0018000000e6f0807cc4af0d00c1f0807ccd7af47738fdfd000401000000000000940f000058dd0e0000a0fd7f000000000800000078f4fd00469e747decf4fd00000400000003000000c04e51623dc201 /f',@ScriptDir,@SW_HIDE)
 楼主| 发表于 2010-2-1 09:37:26 | 显示全部楼层
楼上正确! 再次谢谢各位!!
发表于 2010-2-1 13:30:56 | 显示全部楼层
哇。 那是什么东西。 怎么那么多0000000000000000000000
发表于 2010-2-1 15:35:19 | 显示全部楼层
十六进制表示的二进制
发表于 2010-2-1 18:00:20 | 显示全部楼层
也想知道,呵呵
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2025-1-12 08:42 , Processed in 0.073632 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表