So..you go to a site to read an article on rooting your Android/Apple phone, you get creative and want the lyrics to a popular song, or you visit a news link to some new media site that you’ve never heard of before but it has a news item that you are interested in and it happens…a popup window in the middle of your screen and it is asking you to some task before you leave (and that includes clicking on a “CANCEL” button on the popup.
So no matter where you click on that page or even if you CTRL-ALT-DELETE, you may be subject to something being loaded on to your computer screen.
Another scenario is that Chrome for some reason is just stuck and will not respond to your mouse clicks and you need it dead NOW!
Okay…I hear you…much in the same way we created a shortcut to kill off Internet Explorer under similar circumstances, we can create a shortcut for your desktop or taskbar that will immediately terminate Google Chrome and it will not trigger any onUnload() event that can harm your system.
So to stop myself from reinventing the wheel, I want you to go over this previous posting — http://tech.jchampion.com/?p=16 and follow the steps to the letter.
The only thing that we are going to change the command you paste into the command line area from “C:\Windows\System32\taskkill.exe /F /IM iexplore.exe /T” to “C:\Windows\System32\taskkill.exe /F /IM chrome.exe /T”
If you want to understand what all your instructions mean it is simple – taskkill.exe is the Windows commandline command to terminate a task by either process identification number or by name.
/F means to force it dead
/IM means the image name to kill
/T is telling taskkill to not only kill the program but any child programs that may have opened up as a result
This works in Windows XP, Vista, Windows 7, Windows 8, Server 2003, Server 2008, Server 2008r2, and Server 2012.
As usual…if you have any questions about this–just ask! Find me on Facebook, Twitter (@jachamp) or via this blog.