I have 2 batch files: kill_window1.bat & kill_host.bat. The content of bats are:
kill_window1.bat:
taskkill /f /im some_program.exe
kill_host.bat
taskkill /f /im taskhost.exe
The problem is that when I execute kill_window1.bat, it's like if I had executed kill_host.bat, and also, the process never ends, because cmd window never ends and still printing the line but nothing happens, just still open and my O.S. crash by more than 20 cmd's.
I'm using Windows 7 in a virtualbox.
Sorry if my English isn't perfect. I'm still learning ;)
PD: I'm killing taskhost.exe because sometimes use 100% CPU.