简体   繁体   中英

Taskkill Internet Explorer child process

I'm struggling to kill internet explorer child process (to close one IE tab) using .bat script or just from cmd line. I've already tried:

taskkill /pid {pidid} /f /t

or

taskkill /pid {pidid} /t

and it is not working at all. I got the output that {pidid} was terminated but another pid is set up and the tab is not closed.

This is the IE crash detection kicking in, if you just kill one of the tab processes it will try to restore the tab because it thinks something on the page caused it to crash.

You need to switch to another language so you can do UI Automation or use the Shell.Windows scriptable object if you want to interact with Internet Explorer in a documented and clean fashion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM