Results 1 to 4 of 4

Thread: Force a program to close manually

  1. #1
    Join Date
    May 2009
    Posts
    1,952

    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 ?

  2. #2
    Join Date
    Apr 2008
    Posts
    395

    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:

      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.

  3. #3
    Join Date
    Feb 2009
    Posts
    268

    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 !!

  4. #4
    Join Date
    Feb 2009
    Posts
    240

    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.

Similar Threads

  1. Replies: 3
    Last Post: 26-03-2012, 10:30 PM
  2. How to force safari toolbar to close an application in macosx
    By Esmel in forum Technology & Internet
    Replies: 5
    Last Post: 15-11-2010, 10:51 PM
  3. Replies: 6
    Last Post: 29-06-2010, 09:34 AM
  4. How to make odbc connection force to close
    By Rixwel in forum Software Development
    Replies: 3
    Last Post: 13-08-2009, 09:39 AM
  5. How to open close ports manually?
    By Darsheet in forum Networking & Security
    Replies: 6
    Last Post: 22-05-2009, 08:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,267,558.53317 seconds with 17 queries