As (web)developer mainly living inside Visual Studio during the day at work I usually make use of the built in webserver of this IDE, namely Cassini. However when I close the debugging session one or more instances, especially more when I’m inside one of my test projects, keep on running. I don’t like to stop them all one by one so I created a simple file with notepad and saved it as KillAllRunningCassinis.bat. For people old enough to remember, .bat files were much used in MS-DOS but still can be used in Windows.
The content of this simple file is:
taskkill /im webdev.webserver.exe
Taskkill is a handy tool to instantly kill processes on your Windows machine. To read more about it take a look at the Technet documentation.