How to obtain process of newly created IE8 window?

前端 未结 2 650
深忆病人
深忆病人 2021-01-20 18:40

When using .NET\'s Process.Start to run IE8\'s iexplore.exe, and if you already have another IE8 window open, then the iexplore.exe process that you just started will immedi

2条回答
  •  北海茫月
    2021-01-20 19:17

    As a workaround you may want to force IE to start a new instance (passing -nomerge command line argument):

    Process objProcess = Process.Start("IEXPLORE.EXE", "-nomerge http://google.com/");
    

提交回复
热议问题