Is there a way to do this purely in a .bat file?
The purpose is to launch iexplore.exe
, then kill just that instance when it's finished.
Is there a way to do this purely in a .bat file?
The purpose is to launch iexplore.exe
, then kill just that instance when it's finished.
For some reason your approach of getting process id did not work for me, but since I'm expert in batches, I've coded my own approach, attaching here:
you can use vbscript, here's an example creating notepad, then terminating it using its pid
save as myscript.vbs and on command line