流沙枫 发表于 2011-12-26 15:00:04

回复 6# ahkang


    试过了,都不行的....

流沙枫 发表于 2011-12-26 15:15:27

run(@ComSpec&' /c regedit /s G:\JK\cd1.reg',@ScriptDir,@SW_HIDE)

用这句终于成功导入了.....

流沙枫 发表于 2011-12-26 15:24:41

run(@ComSpec&' /c regedit /s G:\JK\cd1.reg',@ScriptDir,@SW_HIDE)

用这句终于成功导入了.....
流沙枫 发表于 2011-12-26 15:15 http://www.autoitx.com/images/common/back.gif

Run(@ComSpec & " /c " & 'TASKKILL /F /IM explorer.exe /T', "", @SW_HIDE)
Runwait('psexec.exe -d -s explorer.exe',@scriptdir)
WinActive("PsExec License Agreement","")
ControlClick ("PsExec License Agreement","&Agree","Button1")
;Send("!A")
RunAs ( "administrator","", "", 1, "c:\windows\explorer.exe","c:\windows")
Sleep(1000)
run(@ComSpec&' /c regedit /s d:\wx\cd1.reg',@ScriptDir,@SW_HIDE)

   这句 单独运行导入那注册表就行,放到里面就不行了....

流沙枫 发表于 2011-12-26 15:25:37

{:face (245):}
晕啊....

esking 发表于 2013-10-16 13:46:55

非常好用,感谢!不用手动写了。

ex_heyh 发表于 2016-5-9 22:28:24

看看。。。。。看看

zhzhtx 发表于 2016-12-30 21:27:53

好好学习,天天向上
页: 1 2 3 [4]
查看完整版本: 导入注册表