Python - How To Run A Python Scripts As A Scheduled Task On Windows

Опубликовано: 09 Май 2025
на канале: Computertechlighthouse
39
0

Hello programmers,

There are times when we want to run Python script automatically without our initiation or without our click or without our typing a command on cmd Windows, like when we logon to our computer, when scheduled time, when event handler, etc. So this video is about how to run the Python script with SCHTASKS tool GUI on Windows and the help of a BAT file.

To do this in SCHTASKS command prompt do this again with the help with BAT file:
schtasks /create /sc ONLOGON /tn "firsttask" /tr "C:\Users\Totz Tech\AppData\Local\Programs\Python\Python310\mybatfile.bat"

Thank you.
Totz Tech