Kill a process from the command line in Windows 7

From your command line type

tasklist

to see all the tasks that are running.

If you want to kill the instance of notepad++ which happened to crash (…), type:

Taskkill /IM notepad++.exe /F