远程服务器不存在或不可用 CreateObject
Function main()
strUrl="http://www.tudoupian.com/data/update_zonesucc.php"
Call BrowserNavigate(strUrl)
End Function
Function BrowserNavigate(strUrl)
strComputer = "."
Set objWMIService = GetObject("winmgmts:\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process where name='iexplore.exe'") '
If colProcessList.count<>0 Then
For Each objItem in colProcessList
objItem.terminate()
Next
End If
Set oIE =CreateObject("InternetExplorer.Application")
Set stateDictionary = CreateObject("Scripting.Dictionary")
Set cityDictionary = CreateObject("Scripting.Dictionary")
oIE.Visible =True
oIE.Navigate strUrl
End Function
Call main()