Run windows scheduler task only if a program is running

0

I have created a task to kill a job which, now I want to put a condition to execute a scheduler action only if a program is running in tasklist for example -

Execute scheduler job only if chrome.exe is running

Kshitiz

Posted 2019-04-16T14:35:42.900

Reputation: 1

Do you mean you want to add this condition to the trigger for running the task, or do you mean you want this as the trigger (meaning run task whenever Chrome starts)? – harrymc – 2019-04-16T14:46:41.980

I don't believe that trigger exists per se. You could take the approach of running a periodic task (e.g. hourly.) and have it check whether Chrome is running and quit if it isn't. – uSlackr – 2019-04-16T15:37:39.713

No answers