Everything related to the consumption of resources when working with our PC is one of the issues we consider the most today. All this depends to a great extent on the programs we run all the time. For this reason it is so important to close those that we do not need. We will help you do this, ie automate the closing of programs on the computer.
On top of all that we comment on the power consumption of desktop computers is also added, especially if we talk about laptops. Here, autonomy is a key element for the smooth functioning of our team. In this sense, we can take certain measures, e.g. B. Put the computer to sleep, reduce the screen brightness or not run applications that consume a lot of power.
We tell you all this because there are many apps that prevent this from happening system from falling asleep when you are busy. On the other hand, we find some that can even turn off the system once you have completed a certain action. Although the latter is not too common, it does happen. Take as an example what happens with some of the torrent clients, since they usually have this kind of feature. We must also point out the programs that do a certain task and continue to run in the background, consuming resources.
Well, whatever our case, in the following we will help you with these applications that can be a problem microsoft operating system . In particular, we show them how to close them automatically when we really need it. This gives us more control over the running programs. This way they work when we really need them, not when the programs create them themselves or when we have to use the task manager to terminate them.
How to close apps automatically
The ability to automatically shut down an operating system like z windows when an application is closed is called a shutdown timer. As an example the app for the online music service, spotify, has a. But the truth is that these types of timers are not very common in the software we use. We have already told them that we usually use them in . Find torrent clients , but little else.
With everything and with that, there are several ways to schedule the automatic shutdown of windows 10, but all of them force the closing of applications. So if we need to close an application by itself and shutdown the system, we need to create our own shutdown timer. What we tell you is simple and easy to do. To do this we only need to a . Create script Which will run in batches to complete the job and add it to a scheduled task.
create a script to close programs
As we have told you, we will create our own custom script to close any application automatically and at any time. To do this, the first thing we do is open the plain text program included in windows itself, we refer to notepad. Next, we paste the following text into the blank document that appears on the screen.
Taskkill /IM program.Exe shutdown -s -t 30
Of course, in the text programa.replace exe with the name of the application we need to close. At the same time we set the time in seconds in the next line. Finally we save the file with the extension .BAT. Let’s look at a more practical example to give us an idea
taskkill /IM word.Exe shutdown -s -t 30
To give us an idea of what we have just done, this particular script closes the running microsoft application. At the same time shuts down the operating system 30 seconds after closing the application specified in the script.
Add a scheduled task to close programs
What we are going to do now is to create a new scheduled task in the microsoft system to run the previously created script. Assuming this scheduled task will run the script created in the previous section, so we don’t have to run it manually. To do this, the first thing we do is to open task scheduler , for example by typing his name into the windows search field.
Create and configure scheduled task
Once the window that corresponds to the section of the system we are commenting appears, we just need to create a new task. We do this via the menu action / create task. we assign it a name that indicates which application will be closed depending on the previously created script.
Next we go to the tab named trigger , where we can add one using the new button located at the bottom of the window. suppose this new trigger should be set to run on schedule. We must also select the option once, unless we need to close this application and turn off the system every day at a defined time. In this case we always have the possibility to use the other programming options in this particular section.
Load the script to close programs
Once you have added the activator as just mentioned, we go to the tab named actions and add a new action. We leave the action section as it is displayed by default, i.e. in start program. Next, we select the file with the script to close the programs we created. Therefore, as we have seen, once this task has been completely created, it will be activated by default in windows.
In case configure the task to be executed only once, we need to change the trigger the next time you need to use the shutdown timer. This is the safest way, because we will not be surprised if we forget that the task is executed.
Likewise we have the possibility, change the script and close the application, but leave your system running. Here we just have to delete the second line of it. Note that the script does not save anything that is open in the application, but only closes it.