本帖最后由 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) |