为什么在Windows7的VBS脚本中浏览HTTPS URL时会显示IE? [英] why IE is shown when navigating a HTTPS URL in VBS script on windows7?
问题描述
我们有一个VBS脚本,它将按以下方式导航URL:
------------------------------ --------------------------------------------------
设置oIE = CreateObject("InternetExplorer.Application")
oIE.navigate "https://mgr.xxx.com:8443/"
WScript.Echo"wait .."& counter& ":oIE.ReadyState ="& oIE.ReadyState& " ;: oIE.busy =" & oIE.Busy
计数器= 0
While(oIE.busy = true或oIE.ReadyState< READYSTATE_COMPLETE)而计数器< 200
计数器=计数器+ 1
wscript.sleep 1000
WScript.Echo"wait .."& counter& ":oIE.ReadyState ="& oIE.ReadyState& " ;: oIE.busy =" & oIE.Busy
Wend
-------------------------------------- ------------------------------------------
脚本运行良好适用于2003/XP/2008/Vista等.但是在Windows7上,即使我们设置"oIE.visible = false",它也将显示IE浏览器并且无法隐藏.我们已经尝试了很多次,发现:
1.如果我们将粗体URL更改为著名的互联网HTTPS URL,例如"HTTPS://www.gmail.com",和"HTTPS://www.comodo.com";那么它将正常工作,并且不会显示IE浏览器;
2.如果将粗体URL更改为Intranet HTTP URL,例如"http://mgr.xxx.com:8080&",那么它将正常工作,并且没有显示了IE浏览器.
看来IE浏览器仅针对Intranet HTTPS URL显示.是什么问题?
>
感谢您的信息!我建议您在( Windows客户端技术中心 > Windows 7 IT Pro论坛 http://social.technet.microsoft.com/Forums/en/w7itproappcompat/threads ).
希望会有所帮助.
祝您度过愉快的一天!
感谢&问候,
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
Wend
--------------------------------------------------------------------------------
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?
Hello,
Thank you for your post! I would suggest creating a new thread for your question in the (Windows Client TechCenter > Windows 7 IT Pro Forums > Windows 7 Application Compatibility ) forum located here: (http://social.technet.microsoft.com/Forums/en/w7itproappcompat/threads).
Hope that would be helpful.
Have a great day!
Thanks & regards,
这篇关于为什么在Windows7的VBS脚本中浏览HTTPS URL时会显示IE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!