Notice: Undefined index: jqZoomEnabled in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72

Notice: Trying to get property of non-object in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72
href="/modules//smartblog/images/168.jpg" data-fancybox-group="other-views" class="fancybox shown" title="
Notice: Undefined index: imageTitle in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 76

Notice: Trying to get property of non-object in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 76
">

How to Schedule the Shutdown of an Application on Windows

  190936 Thursday, December 14, 2017

1. Introduction
2. Steps to follow when planning to close an application on Windows
3. Read also

Introduction


Sometimes you need to schedule an application to stop at a specific time.
Task Scheduler is an integrated feature of the Windows operating system. It can be used to create a variety of tasks that the computer must perform automatically. You can use it to launch programs or run scripts at a scheduled time without having to depend on third-party tools.

The Taskkill command allows you to schedule the shutdown of an application or program at any time.

In this article, I'll show you how you can use the Task Scheduler and Taskkill command to schedule an application to close in Windows at a specific time. And because it's a feature of Windows, it should work on all versions of the operating system.

Recommended for you: How to plan the shutdown of a PC in Windows 10

You have scheduled the launch of an application or a script that does not stop by itself and you would like also to schedule a shutdown? With the Taskkill command, you can schedule a task to close any program.

Steps to follow when planning to close an application on Windows

1. Open the notebook application.

2. In the Notepad page, you will specify the programs to run. Add each program on a separate line. Then enter the following command replacing Program.exe with the name of the executable of the program to be closed.

taskkill / f / im Program.exe

taskkill-command

3. After adding all the desired programs, click File and then Save.

4. Select the All Files option in the Type list.

5. In the File Name field, add a name to your script, making sure to set it to the .bat extension, for example Force close.bat. Save the file to the desktop.

6. Start the task scheduler on the Start menu to schedule the launch of your script and stop the defined program.

task-scheduler

7. Next, click Create Task.

create-task-task-scheduler

8. Choose a name for your scheduled task and click the Triggers tab.

create-task-triggers

9. Then, click the New button.

10. Then select the day, time and frequency of your task. Then, click OK.

new-trigger

11. Next, open the Actions tab and click New.

12. Click the Browse button next to the Program / Script field.

13. Choose your bat file containing the script that closes the program, and click Open.

new-action-in-task-scheduler

14. Validate the procedure with OK. Your closing script will automatically run on the selected day and time.


Read also

How to install Virtualbox for the creation of a virtual machine

What is the Windows.Old folder?