1

I want to run a certain python script every 5 min or so to automate some tasks under Windows 10.

Here is a description of how to run a python script frequently under Win 7. Does W10 have the same or similar task scheduler? Are there better ways of doing it?

Also, I would like to load a conda environment before the script is executed. Has anyone done that before? Does anyone have a link to a description?

Soerendip
  • 7,684
  • 15
  • 61
  • 128
  • Task scheduler still exists so you can still use it to schedule a script to run. Could you explain why you want to load a conda environment? – Mihai Chelaru Sep 06 '19 at 18:29
  • I want to load a conda environment, because I may need to run different scripts with different dependencies which are mutually incompatible. – Soerendip Sep 06 '19 at 18:31
  • 1
    Have you considered [compiling your script into an executable](https://stackoverflow.com/questions/5458048/how-to-make-a-python-script-standalone-executable-to-run-without-any-dependency) and then running that? This has the advantage that you're not going to break the functionality if something happens to your conda environment. Not sure if it's a better alternative, but I've made that work before when scheduling a Python script to run as a scheduled task. – Mihai Chelaru Sep 06 '19 at 18:33

0 Answers0