Internet explorer 如何在背景中打开IE?不应显示任何窗口?

Internet explorer 如何在背景中打开IE?不应显示任何窗口?,internet-explorer,Internet Explorer,我正在开发一个应用程序。这需要运行浏览器(IE)。但每次窗户都开着。我通过执行批处理文件来运行IE。我的要求是IE窗口不应可见。 有人能推荐我吗 试试这个VB脚本 Visible = 0 'it won't show Set objExplorer = WScript.CreateObject _ ("InternetExplorer.Application", "IE_") objExplorer.Navigate "http://www.google.com" 'Determines i

我正在开发一个应用程序。这需要运行浏览器(IE)。但每次窗户都开着。我通过执行批处理文件来运行IE。我的要求是IE窗口不应可见。 有人能推荐我吗

试试这个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

你可以试着使用一系列的powershell

powershell -Command "& {Start-Process -WindowStyle Minimized iexplore.exe}"

谢谢,你能用c写这个脚本吗#