W
W
Whatt2019-11-29 10:44:16
Windows
Whatt, 2019-11-29 10:44:16

Is it possible to stop the application through the task scheduler?

Greetings!
Tell me, is it possible through the task scheduler in windows 10 to set a task for the application, with the condition that if the application load on the CPU is 0%, what would it stop and restart?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
#
#, 2019-11-29
@Whatt

in the scheduler there is definitely a condition for the launch trigger "when the system is idle"
this does not guarantee 0% CPU utilization. but guarantees low activity. for example, your task will queue up for an antivirus, an indexer, a defragmenter, and so on.
in general, the issue is absolutely resolvable, by carefully studying the planner, using the "poke" method
pps

criticism of the version that it is difficult to program
загрузку основных ресурсов, можно отслеживать аж на уровне скриптов - https://ru.wikipedia.org/wiki/WMI
еще можно настраивать аудит на многие вещи - https://docs.microsoft.com/ru-ru/windows/security/... а шедулер умеет триггерить любые эвенты по достаточно изощренным фильтрам
таже существует много сторонних инструментов, с широчайшими возможностями, в том числе средствами мониторинга чего либо
https://docs.microsoft.com/ru-ru/sysinternals/
https://www.nirsoft.net/utils/index.html
ppps
but in some ways colleagues are right
довольно много вещей надо уложить в одной голове. если вопрос все еще актуален - пишите в каменты. в разумных пределах помогу, может не спешно... ну или контакт есть в профиле

A
Armenian Radio, 2019-11-29
@gbg

It is possible, but it will require writing a non-trivial program.

A
Artem @Jump, 2019-11-29
curated by the

No.
Task Scheduler - executes tasks according to a schedule or event.
It does not track application load on the CPU.
If you yourself get confused with this and keep track - well, fine, but it’s not clear why you need a task scheduler then.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question