0% found this document useful (0 votes)
2 views2 pages

Task Scheduler Procedure

This document provides a step-by-step guide on how to create a scheduled task in Windows Task Scheduler to run a Python script. It includes instructions on opening Task Scheduler, creating a new task, specifying the Python executable and script, setting the working directory, configuring the trigger, and testing the task. The guide is aimed at users who want to automate the execution of their Python scripts at specified intervals.

Uploaded by

nal2us2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Task Scheduler Procedure

This document provides a step-by-step guide on how to create a scheduled task in Windows Task Scheduler to run a Python script. It includes instructions on opening Task Scheduler, creating a new task, specifying the Python executable and script, setting the working directory, configuring the trigger, and testing the task. The guide is aimed at users who want to automate the execution of their Python scripts at specified intervals.

Uploaded by

nal2us2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Open the Task Scheduler:


o Search for “Task Scheduler” in the Start menu and open the
application.
2. Create a New Task:
o Right-click on “Task Scheduler (Local)” and select “Create Basic
Task…”
o Give your task a name (and optionally a description).
3. Add an Action:
o Switch to the “Actions” tab and click “New.”
o In the “Action” dropdown, select “Start a program.”
4. Specify the Python Script:
o In the “Program/script” field, enter the path to your Python
executable. You can find this by running the following Python
code:

Python

import sys
print(sys.executable)
C:\Users\nal2u\AppData\Local\Programs\Python\
Python312\python.exe

o In the “Add arguments” field, provide the name of your Python


script (e.g., my_script.py).
5. Set the Working Directory:
o In the “Start in” field, specify the folder where your Python script
is located.
o C:\Users\nal2u\OneDrive\Desktop\Python\Python Projects
6. Configure the Trigger:
o Click on the “Triggers” tab.
o Select “New” to create a new trigger.
o Choose the frequency (e.g., daily) and set the desired execution
time.
7. Save and Test:
o Save the task.
o You can manually run the task to test if it executes your Python
script correctly.

You might also like