search
HomeOperation and MaintenanceWindows Operation and MaintenanceHow to run python program regularly in windows

How to run python program regularly in windows

Feb 05, 2021 pm 04:54 PM
pythonwindows

How to run python program regularly in windows

The windows system has a scheduled task function, through which we can run python programs regularly.

Specific method:

  • First prepare your own python.py or pyw file and copy its path. The path is best in English;

  • Enter the task scheduler control page:

  • My Computer-Management-Task Scheduler-Task Plan Library

How to run python program regularly in windows

Click on the right to create a task:

How to run python program regularly in windows

In Trigger - Create a new task under the New menu, and the number of repetitions can be set in the advanced settings of the task.

How to run python program regularly in windows

Note: The time unit in the recurring task interval can be edited. You can edit the unit as minutes. The default minimum interval is 1 hour, but you can manually change the hour to Edit to minutes to run every minute.

Configure the tasks you want to run regularly under the Operation-Add window. Select the startup program and fill in three boxes at once: python.exe or pythonw.exe; fill in the second box with the full path of the python_code.py script you want to start; fill in the third box with the path of the python interpreter, that is python installation path.

How to run python program regularly in windows

The configuration has been completed here. After confirmation, the task will be entered into the Windows task schedule library.

Related recommendations: windows system

The above is the detailed content of How to run python program regularly in windows. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.