B
B
bitkoljas2021-11-12 15:57:14
Command line
bitkoljas, 2021-11-12 15:57:14

How to create a task in the task scheduler through the console?

I have a script written in python and the interpreter itself. They are in the C:\Script folder. Running the command pythot.exe backup.pyw

How to create a task in the task scheduler through the Windows console so that it has several triggers for execution, such as: Run when any user logs into Windows, Run when idle, and also if the script flew off, it restarted after 3 minutes. That is, so that the program would constantly hang in the background, and if I close it and do not notice, then it will start again. If the program is already running, and the trigger has worked again, then put the program in the queue for launch.
I hope I explained clearly. Just confused with the keys and how to add multiple triggers
The task should run the script with admin rights

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2021-11-12
@bitkoljas

schtasks /?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question