$print=@TempDir&"\print.reg"
if FileExists($print) Then FileDelete($print)
FileOpen($print,9)
FileWriteline($print,"Windows Registry Editor Version 5.00")
FileWriteline($print,"[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Forms]")
FileWriteline($print,'"票据专用"=hex:60,5b,03,00,1c,83,01,00,00,00,00,00,00,00,00,00,60,5b,03,00,1c,83,01,00,01,00,00,00,00,00,00,00')
FileWriteline($print,"[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Forms]")
FileWriteline($print,'"票据专用"=hex:60,5b,03,00,1c,83,01,00,00,00,00,00,00,00,00,00,60,5b,03,00,1c,83,01,00,01,00,00,00,00,00,00,00')
FileClose($print)
$pid=runas($usr,$dom,$pwd,0,"regedit /s "&$print,@SystemDir,@SW_hide)
可以这样导入注册表吗?今天试了,一直失败,麻烦高手大大们解答一下。
[ 本帖最后由 palkiller 于 2008-9-25 23:27 编辑 ] |