comobject InternetExplorer.Application:在自己的Session中启动多个浏览器

时间:2011-04-14 12:24:00

标签: internet-explorer session com powershell

在Powershell中打开两个IE Windows时,它们将具有相同的Session / ProcessID 是否有一个Switch强制为每个窗口强制一个新的Session / ProcessID?

    1..2 |
ForEach-Object {
$ie = New-Object -comobject InternetExplorer.Application  
$ie.visible=$true
$ie.Navigate2("http://www.google.de/")
}

使用IE本机,您可以点击文件>右键单击>新会议

或者在调用iexplore.exe时,这将使用-nomerge标志。希望有一种方法可以通过ComObject实现这一目标。

  

“C:\ Program Files \ Internet   Explorer \ iexplore.exe“-nomerge

0 个答案:

没有答案