【问题标题】:Taskkill Internet Explorer child processTaskkill Internet Explorer 子进程
【发布时间】:2018-01-02 15:27:44
【问题描述】:

我正在努力使用 .bat 脚本或仅从 cmd 行杀死 Internet Explorer 子进程(关闭一个 IE 选项卡)。 我已经试过了:

taskkill /pid {pidid} /f /t

taskkill /pid {pidid} /t

它根本不工作。我得到了 {pidid} 已终止但设置了另一个 pid 并且选项卡未关闭的输出。

【问题讨论】:

    标签: windows internet-explorer batch-file


    【解决方案1】:

    这是启动的 IE 崩溃检测,如果你只是杀死一个选项卡进程,它会尝试恢复选项卡,因为它认为页面上的某些东西导致它崩溃。

    您需要切换到另一种语言,以便您可以使用UI Automation 或使用Shell.Windows 可编写脚本的对象,如果您想以文档化和简洁的方式与 Internet Explorer 交互。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-18
    • 2012-09-13
    • 1970-01-01
    • 2011-10-28
    • 1970-01-01
    相关资源
    最近更新 更多