求一个vbs困惑

来源:百度知道 编辑:UC知道 时间:2024/06/22 12:34:26
打开IE5秒后自动关闭
提示缺少对象iexplore,请问高手该怎么弄啊
dim s
set s=CreateObject("Wscript.Shell")
s.run "iexplore.exe"
wscript.sleep 1000*5
s.run "taskkill /im" &iexplore.exe

dim s
set s=CreateObject("Wscript.Shell")
s.run "iexplore.exe"
wscript.sleep 1000*5
s.run "taskkill /im iexplore.exe",0,true
msgbox "缺少对象iexplore",16+4096,"错误"

换个流览器或重装IE