How to Run a Python Script with the Windows Task Scheduler - Run Scheduled Python Scripts

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

FYI - my Task Scheduler didn't like the spaces in my .py filename so I removed those and it worked! This video is tremendous, thank you

Createme
Автор

Thanks for this - helped me set up my daily script to keep running while I'm on vacation 😆

thesilenthero
Автор

Now i see why it didn't triggered my script! Thanks, man!

LucasSilva-pdkn
Автор

Simple and perfectly explained. Thank you!

glenn
Автор

Incredible, you have just opened my eyes, thank you

qestwzf
Автор

am seeing fallowing error
a specified logon session doesn't excites

madhusudhanak
Автор

REALLY IMPORTANT- sometimes your script will automatically be set to disabled, so just enable it!!!!

rizbroz
Автор

0x2331 error
Thanks, does anyone know why I am getting this error? I have python thru anaconda.

jessefreitag
Автор

Hi, does this task scheduler need any internet or wifi to run? Thx for the video anyway, it really helps me a lot! Xoxo

dyahlangensari
Автор

great video! however, it doesn't work for me. the task refuses to run on schedule (every 5 mins) but it runs when I trigger it manually. any idea why the trigger wouldn't work?

ivanm
Автор

hi.my python webscraping scripts are running perfectly but
even after the script perfectly ran if i check the task manager i am seeing the python and the browser still open and the ram and cpu is consumed.
eventhough the browser and the py file is closed. is there a way to fix this

jibinbhagianath
Автор

When I setup tasks on the task scheduler using a local repository with a virtual environment I point to the python interpreter in .../.venv/Scripts (given your venv is named .venv) and enter the root of my local repo as the start in option, due to the fact my script is usually in something like .../src/py/main.py and the script is usually referencing paths in .../data/in/data.csv (i.e. paths are not hardcoded)

henri_poincare
Автор

As soon as I created the task at 7:00 I couldn't find the task in the task list. I figured that visiting C:\Windows\System32\Tasks or running "schtasks.exe /query" on the command line I could find it there but it was in Status: Ready and to test it I set the time to 5' but it never run :(

vaggelismanousakis
Автор

I understand that the script will run even if I am logged on. Silly question, but will it run if my computer is sleeping also?

CharlesClarke-blpj
Автор

Perfect... was already wondering how I could integrate cron into windows server... maybe git bash can make it work... eitherway, I am going to try this now

oyindamolavictor
Автор

Hi
I have a request.
Can you set up an automatic schedule to lock files and ask for a new password?

for example: A file I send to another person on a different device will be locked in the next 1 hour.
The file can be opened again with my permission and using a new password.

thankyou

ibecristiano
Автор

does it works for automations using pyautogui library?

monkeynoaim
Автор

Thank you bro ur video was very helpful

samk
Автор

hi I have created a task but at the time of execution i am getting this error. Task Scheduler failed to start "\testpython" task for user "NT AUTHORITY\SYSTEM". Additional Data: Error Value: 2147942667. can you pls help me

smartap
Автор

I get 0x2331 error when running the script. Why? :)

codebusters