why IE is shown when navigating a HTTPS URL in VBS script on windows7? RRS feed

  • Question

  • We have a VBS script which will navigate a URL as following:
    Set oIE = CreateObject("InternetExplorer.Application")
    oIE.navigate "https://mgr.xxx.com:8443/"
    WScript.Echo "wait.."&counter & ": oIE.ReadyState="&oIE.ReadyState& ": oIE.busy=" & oIE.Busy
    counter = 0
    While (oIE.busy = true or oIE.ReadyState < READYSTATE_COMPLETE) And counter < 200
    counter = counter + 1
    wscript.sleep 1000
    WScript.Echo "wait.."&counter & ": oIE.ReadyState="&oIE.ReadyState& ": oIE.busy=" & oIE.Busy
    The script works well for 2003/XP/2008/Vista and so on. But on Windows7 it will shown an IE browser and cannot be hidden, even if we set "oIE.visible = false". We have tried for many times and found that:
    1. if we change the bold URL to a famous internet HTTPS URL, such as "HTTPS://www.gmail.com" and "HTTPS://www.comodo.com" then it works and no IE browser is shown;
    2. if we change the bold URL to an intranet HTTP URL, such as "http://mgr.xxx.com:8080", then it works and no IE browser is shown.
    So seems IE browser only shown up for an intranet HTTPS URL. What's the problem?
    Tuesday, October 19, 2010 4:40 AM


  • Hi,

    For this kind of questions, please discuss in our Script Center forum.

    Script Center Home Page

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    • Marked as answer by Arthur Xie Thursday, October 28, 2010 9:59 AM
    Friday, October 22, 2010 7:16 AM