One-click to close all running programs in Windows 7

  
When you are busy with a day's work, when you are ready to shut down your computer, you will find that many running programs on the Windows 7 taskbar need to be closed one by one. Maybe you are at this time. It would be more convenient to want to be able to shut them all at once. In fact, this idea can be done completely, and does not require any special software, you can do it yourself.

First, right click on your Windows 7 desktop, create a new shortcut, and enter the following:

taskkill /F /FI "USERNAME eq PChome" /FI "IMAGENAME ne explorer. Exe " /FI "IMAGENAME ne dwm.exe"

Note, here please replace "PChome" with your computer's personal username.



then [next] to this shortcut named, for example: Shut down all processes.



Click the [Finish] shortcut to build it, you can put it on the desktop, or lock it to the Windows 7 taskbar. Then just start a few programs and double-click on the shortcut to see if it is all closed. How, this little shortcut makes it easy to close the program.

If you think the default shortcut icon is not good, you can also give it a suitable icon, right-click this shortcut, Properties--Shortcut--Change icon. Icon resources can be selected from C:WindowsSystem32SHELL32.dll or from C:WindowsSystem32imageres.dll.


After
replacement icon, this is like a shortcut application. When




In addition, this shortcut In addition to helping users save operation before shutting down, but also can occur in response to severe latency issues Windows 7 for various reasons, to Turn off all the programs in a quick and confusing form and let the system return to normal.

Finally, there is one point to note in use:

The principle of this shortcut is to use the taskkill command to force the end of all processes except "explorer and dwm" with "PChome" as the user name. It will also include some of the security software's processes. If you are not using it before shutting down, remember to manually start the security software. Of course, we can add the security software related process to the shortcut, and add a paragraph after the "target" column of the shortcut: /FI "IMAGENAME ne security software process name", note that there must be spaces before /FI.

Copyright © Windows knowledge All Rights Reserved