1

I have an app.exe file which I want to be terminated every monday at 19:00.

Is it possible to schedule tha task which terminates app.exe ?

2
  • CMD -> taskkill /? = "This tool is used to terminate tasks by process id (PID) or image name." Oct 27, 2014 at 16:32
  • @Ƭᴇcʜιᴇ007 Ok, but do you suggest that the solution is run another .exe at 19:00 which runs process taskkill /? ? Or taskill/? can be run by Windows Scheduler itself?
    – Yoda
    Oct 27, 2014 at 21:54

2 Answers 2

2

creation

schtasks /create /tn termination /tr "taskkill /f /t /im app.exe" /sc weekly /d mon /st 19:00

creating a task named termination (/tn) that runs weekly (/sc weekly) every monday (/d mon) at start time of 19:00 (/st)

viewing

schtasks /query /tn termination

viewing the created task queried by name

Folder: \
TaskName                                 Next Run Time          Status
======================================== ====================== ===============
termination                              2014.11.3 7:00:00 PM   Ready

ps:

here tasklist terminates the process tree (/t) by it's image name (/im) forcefully (/f) (without prompting for confirmation)

0

Expanding what @Ƭᴇcʜιᴇ007 has suggested:
Create a scheduled task in task scheduler and task to run should be:

taskkill /im <your application name>.exe /f

You may have to schedule this task to run as administrator.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .