taskkill /f /fi "IMAGENAME ne notepad.exe"
这个就是结束所有程序,但保留记事本进程!
taskkill /f /im qq.exe 这只是一个例子,自己看着来。