Create a Windows scheduled task to execute Python script [turn]

How regularly run a python script in the windows?

The solution: use windows "Task Scheduler"

The first step: Right-click in the calculator -> select Manage to enter the following interface:

Step Two: Select System Tools -> Task Scheduler, click on the right side of the "Create Basic Task", enter the following interface

The third step: enter the task name, click Next, set the trigger to enter interface

Step four: After selecting click Next, enter the setup screen time

Step five: Continuous Next, enter the boot program settings interface

Note: This step is important, there are three text boxes,

[] Program or script to fill the text box is the name Python compiler, is the general python.exe,

[Adding Parameters to fill the text box is the full path to your Python programs, for example: G: \ PyDemo \ util \ copymysql.py.

[Starting to] fill the text box is Python compiler directory, the full path to the image above assume your Python compiler is "H: \ DevTool \ Python36 \ python.exe",

This completes the set of task execution, but several times a day if we want to execute it? Read on:

Step Six: Go to "Task Scheduler" -> "Task Scheduler Library", where you can find the task plan just added

Step Seven: Double-click the need to modify the mission plan, detailed pop-up screen, select "Trigger"

Step Eight: Click below to create a new, you can add triggers

So you can add multiple triggers, if you want to change other information can also be.

Transfer from

(3 messages) Windows to create a scheduled task to execute Python scripts _Python_CodingDang-CSDN blog https://blog.csdn.net/u012849872/article/details/82719372

Guess you like

Origin www.cnblogs.com/paul8339/p/12532198.html