如何在后台打开IE无窗口应该显示? [英] How to open IE int the background no window should be displayed?
本文介绍了如何在后台打开IE无窗口应该显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个应用程序。这需要浏览器(IE)才能运行。但窗户正在打开。我通过执行批处理文件运行IE。我的要求是IE窗口不应该是可见的。
任何人都可以建议我请....!
I am deveoloping an application. Which requires a browser(IE) to run. But evrytime the window is opening. Im running IE by executing a batch file. My requirement is IE window should not be visible. Can anybody suggest me Please Please....!
推荐答案
试试这个VB脚本。
Visible = 0 'it won't show
Set objExplorer = WScript.CreateObject _
("InternetExplorer.Application", "IE_")
objExplorer.Navigate "http://www.google.com"
'Determines if the window is visible or not
objExplorer.Visible = 0
'Suspend the script for 1 minute
WScript.Sleep 60000
'Close the IE (instantiated) window
objExplorer.quit
Sub IE_onQuit()
Wscript.Quit
End Sub
这篇关于如何在后台打开IE无窗口应该显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文