1

有没有办法使用 VBS 以隐身模式打开 IE?

喜欢:

Set IE = CreateObject("InternetExplorer.Application") 

 IE.navigate "Google.dk" 
 IE.Visible = 1

但不是打开一个普通的 iexplorer,而是打开一个隐身版本?

我需要这个,因为我使用的网络表单存在问题,在其修复之前,最简单的方法是使用隐身。

4

1 回答 1

1

因此,似乎不可能让 vbs 在 InPrivate 中打开 IE。但是,我似乎可以使用 cmd 在 inprivate 中打开 iexplorer,然后使用以下内容为 VBS 脚本标记它:

For Each wnd In CreateObject("Shell.Application").Windows
  If InStr(1, wnd.FullName, "iexplore.exe", vbTextCompare) > 0 Then
    Set IE = wnd
    Exit For
  End If
Next
于 2014-11-23T20:48:09.107 回答