我有一個使用InternetExplorer對象的vbscript導航到幾頁,並將數據傳遞給這些頁面。最近補丁IE8我注意到,有什麼是造成殭屍iexplore.exe
進程的創建。在運行我的腳本並觀察任務管理器中的進程列表時,我注意到當我的腳本創建對象時,進程列表中會出現兩個進程。這是正常的行爲嗎?爲什麼會發生?我想知道,因爲即使在測試期間,當我調用InternetExplorer對象的quit方法時,這兩個進程都會被殺死,但我仍然懷疑這些多進程是造成殭屍的根本原因。爲什麼CreateObject(「InternetExplorer.Application」)創建兩個iexplorer.exe進程?
下面是一些示例代碼:
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate2 "Address"
ie.AddressBar = 1
ie.Toolbar = 1
ie.StatusBar = 1
ie.Width = 600
ie.Height = 400
ie.Left = 300
ie.Top = 150
ie.Visible = 1
Do While ie.Busy
WScript.Sleep 1
Loop
ie.Navigate2 "Address?variable=value"
Do While ie.Busy
WScript.Sleep 1
Loop
...rest of code...
ie.Quit
Set ie = Nothing