|
对其他type的直接支持有问题
如
- Windows Registry Editor Version 5.00
- [HKEY_CURRENT_USER\Software\EasyBoot Systems\EasyBoot\3.0]
- "New Value #1"=hex:ea,ee,aa,ea,ea,ee,a0
- "New Value #2"=dword:00000000
- "New Value #3"=hex(7):31,00,31,00,31,00,31,00,31,00,31,00,31,00,5c,00,22,00,7a,\
- 00,64,00,67,00,64,00,66,00,68,00,72,00,27,00,22,00,00,00,22,00,3a,00,67,00,\
- 64,00,7a,00,68,00,74,00,68,00,22,00,00,00,00,00
- "New Value #4"=hex(2):45,00,3a,00,5c,00,49,51,71,9a,e5,5d,77,51,5c,00,45,00,61,\
- 00,73,00,79,00,42,00,6f,00,6f,00,74,00,5c,00,69,00,73,00,6f,00,00,00
- "New Value #5"=hex(5):00,00,00,00
- "New Value #6"=hex(b):00,00,00,00,00,00,00,00
- "New Value #7"=hex(6):11,11,11,10
- "New Value #8"=hex(8):23,dd,50
- "New Value #9"=hex(9):ad,ad
- "New Value #10"=hex(a):35,34,5f,f0
复制代码
你的程序得到的结果:
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #1" /t REG_BINARY /d eaeeaaeaeaeea0
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #2" /t REG_DWORD /d 0
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #3" /t REG_MULTI_SZ /d "1111111"zdgdfhr'"\0":gdzhth""
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #4" /t REG_EXPAND_SZ /d "E:\光驱工具\EasyBoot\iso"
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #5" /t REG_SZ /d hex(5):00,00,00,00
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #6" /t REG_SZ /d hex(b):00,00,00,00,00,00,00,00
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #7" /t REG_SZ /d hex(6):11,11,11,10
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #8" /t REG_SZ /d hex(8):23,dd,50
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #9" /t REG_SZ /d hex(9):ad,ad
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #10" /t REG_SZ /d hex(a):35,34,5f,f0
复制代码
正确的表达式为:
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #1" /t REG_BINARY /d eaeeaaeaeaeea0
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #2" /t REG_DWORD /d 00000000
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #3" /t REG_MULTI_SZ /d "1111111\\"zdgdfhr'"\0":gdzhth""
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #4" /t REG_EXPAND_SZ /d "E:\光驱工具\EasyBoot\iso"
- reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #5" /t REG_DWORD_BIG_ENDIAN /d 00000000
复制代码
其他几种类型 reg命令不支持的说
另:
reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #2" /t REG_DWORD /d 0
最好改成标准写法
reg add "HKCU\Software\EasyBoot Systems\EasyBoot\3.0" /f /v "New Value #2" /t REG_DWORD /d 00000000 |
|