admins
vbs脚本直接打开ie的代码
url = InputBox("请输入要访问的网址:","网址输入","http://www.baidu.com")
If url <> "" Then
' 创建 IE 应用程序对象
Set ie = CreateObject("InternetExplorer.Application")
' 设置 IE 可见性
ie.Visible = True
' 访问指定网址
ie.Navigate url
' 等待网页加载完成
Do While ie.Busy Or ie.ReadyState <> 4
WScript.Sleep 100
Loop
MsgBox "网页加载完成!"
' 你可以在这里添加其他操作,比如与页面交互
' 释放 IE 对象
' Set ie = Nothing
Else
MsgBox "您取消打开网址。"
End If