Trigger Python script from Windows Task Scheduler

When we schedule Python jobs through Windows Task Scheduler, there is one tab in which we have to specify the script name which we want to trigger with the location of the script, location of the Python program and arguments. If we don't supply the right values in the right fields, the script will not be triggered. This simple post is limited to provide information about what to provide in each of those fields in that tab (Start a Program).  

Once you have opened Windows Task Scheduler and progress through the options in Create Basic Task, the fields that you can see in the "Start a Program" are Program/Script, Add arguments and Start in as shown in the image below. 

Program/Script: python

Add arguments: provide the path and the python script such as C:\NSE\code\

Start in: Provide the location of the Python folder such as  C:\Users\Win10\AppData\Local\Programs\Python\Python38 as shown in the image below.

That's it. Now the python script will be triggered at the scheduled datetime. 


Popular posts from this blog

ETL developer vs Data engineer

3 years of IBI