Force a program to close manually
I am windows user. I need some tip from any of you to force windows to close the non responsive or frozen program.Sometimes when i use the windows task manager it just wont terminate the process. Many times it happens while shutting down to Pc, a dialog box appears saying “This Program has stopped responding” and i have End Task or wait to allow more time Windows to terminate the program or task. So is there any way i can force windows to close the programs ?
Re: Force a program to close manually
You can use taskkill.exe with the /F parameter. "TASKKILL /F /IM notepad.exe" would kill notepad -- you can kill by application name, PID, or window title.Or set the value of “AutoEndTasks” to 1 if you want force exit or force close any unresponsive programs automatically. to do so, go through this steps:-
- Open the command prompt and type regedit and press Enter.
- In the Registry Editor, navigate to the following folder:
Quote:
HKEY_USERS\Default\Control Panel\Desktop
- Now search for “AutoEndTasks” registry key on the right panel and double click on the key and modify the Value data to 1.
- Click on OK.
- Restart the Windows to effect the changes.
Re: Force a program to close manually
You can even kill the program from Konsole window but you need to do is find the Process ID for doing this. To do so, try this steps:-
Type ps -e | grep NameOfProgramYouWantToKill in the konsole window.
Sometimes the name of the program not obvious or not what you expect it to be. So type ps -e and scroll through the list to find it. Once you find it, you'll notice a number beside it, on the left.
Now type the Kill + number of the process and enter. Thats it !!
Re: Force a program to close manually
Thanks for sharing tis useful info guys. I was also facing this problem sometime, but i got rid of it. If you've ever wondered why pressing the power button on a modern PC makes it shutdown a lot quicker than going to start and choosing shutdown, its because the former forces the applications to close NOW.