Close windows and programs that are not responding on Windows

When a program freezes and you can no longer close a window because it becomes immobile, the process that governs it has probably gone haywire and no longer responds.
In some cases, the message "Application xxx does not respond" appears, in other cases nothing happens and you remain with the process blocked.
Everyone now knows that to unlock it you have to close it in order to "kill" it and, in general, you do it with the task manager (right click on the bar at the bottom) and look at the applications tab to find the locked window that should be closed by pressing on "terminate application".
If there is no locked window instead you need to know the process responsible for the block in the "Processes" tab, right click on the right name and select "end process".
This last operation is certainly not recommended because, even if serious damage cannot be done, if you do not know what you are doing, you could make mistakes and it takes a certain habit of recognizing the names, which are somewhat difficult, of the various processes.
Here then, to terminate all programs you can use a Windows command, taskkill, applied to an icon on the desktop, which automatically closes all unresponsive tasks .
Windows has several tools to close and end programs from the command line, that is by opening the window on the Start Menu -> Run and writing the name of the command.
To know these commands you must have studied the advanced functions of the operating system but, in general, these are always functions that can be activated from the various configuration menus that appear on Windows or, better, from the icons that are on the desktop.
Pressing the right button on any icon such as that of internet explorer, on properties, you can read the command that starts when you double click, in this case, the opening of the simple browser.
The script that is activated from the command line, can be faster and easier to use than the task manager and, following these indications, you can prepare the file to be clicked when needed.
The command to use is called TaskKill and is automated with this easy procedure :
1) Create a new shortcut on the desktop by right clicking on the empty space.
2) In the window that appears, where it says "enter the path for the connection", you have to write taskkill.exe / f / fi "status eq not responding"
3) Click on "Next" and write the name of the link, that is the name that appears under the icon that can be, for example "Close locked windows".
From this moment, clicking on that icon will close all windows and blocked applications and programs .
You can also choose a combination of keys to activate the automatic closing of all processes in tilt and you have to right click on the new icon, choose the properties and then write, in the "Shortcut keys" field, for example, CTRL + ALT + INS so this key combination activates the Task Kill.
To get a deeper understanding of this command, it could also be used in other situations, this time without creating new links, but writing it in the Start -> Run field.
The syntax for the command can for example be:
- To see what processes are using a particular DLL:
taskkill / f / fi "eq some.dll modules"
- To close all programs that use large amounts of memory, for example 40 MB. (To be used with caution):
taskkill / f / fi "memusage gt 40000"
- To close programs that use more than 40 MB of memory, excluding Windows Explorer, the main Windows process:
taskkill / f / fi "imagename ne explorer.exe" / fi "memusage gt 40000"
For the more experienced, in general the syntax used is of the type:
TASKKILL [/ S system [/ U username [/ P [password]]]] [/ FI filter] [/ PID processid [/ F] [/ T]
but I refer to this page for a detailed explanation of the possible variables.
For the less experienced and those looking for something simpler, there is a small tool, SuperF4, capable of terminating windows and programs with a combination of keys on the keyboard.
On other posts you can find:
- Alternatives to the task manager with better, more complete and effective tools;
- Use Antifreeze when the computer doesn't move right and the taskkill doesn't work anymore;
- General procedures to fix a pc that goes slow or that often freezes.

Leave Your Comment

Please enter your comment!
Please enter your name here