Reputation: 29
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.
Upvotes: 0
Views: 699
Reputation: 101606
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.
Upvotes: 1