0

I want to run a python script at a particular time. say Everyday 10am or every 2 hours. How can I achieve that? I have read these questions- Q1 Q2

skysoft999
  • 540
  • 1
  • 6
  • 27

1 Answers1

1

You don't need a service to schedule a Python script. Just use Windows Task Scheduler to run it. When I do this I usually wrap the invocation of Python in a batch file, so the scheduler runs mytask.cmd but you can also schedule a complete command line invocation of the interpreter, for example: c:\python36\python.exe mytask.py.

Task Scheduler is in the Control Panel. Open Control Panel, and in the top right hand corner ("Search Control Panel") type Schedule. One of the options you will get is Administrative Tools | Schedule tasks.

BoarGules
  • 16,440
  • 2
  • 27
  • 44