run(@ComSpec&' /c regedit /s G:\JK\cd1.reg',@ScriptDir,@SW_HIDE)
用这句终于成功导入了.....
流沙枫 发表于 2011-12-26 15:15 
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)
这句 单独运行导入那注册表就行,放到里面就不行了.... |