Step 1
In the Windows 7 go to the Start>Accessories and open the Windows Notepad.
In the Windows 8 move your mouse into the bottom or top left of the Desktop or the Start screen to bring the short menu. Then inside the search box type notepad.
Step 2
Type the commands below inside the Notepad:
Step 3
Close and save the file with the extension .bat. Give it any name you want, I named my file Terminate.bat.
Step 4
Now when you face hung applications while working with Windows, instead of using the Task Manger, double-click on this file to stop the frozen applications. This simple bat file will close any program that is in the Not Responding state.
If you want to learn how to close a process in Windows with CMD then read this article.