Schedule a Python script via batch on windows (using Anaconda)

后端 未结 4 1719
别跟我提以往
别跟我提以往 2020-12-09 04:29

I have a script that i run every day and want to make a schedule for it, i have already tried a batch file with:

start C:\\Users\\name\\Miniconda3\\python.exe

4条回答
  •  清歌不尽
    2020-12-09 05:05

    Found a solution, i copied the "activate.bat" file in "C:\Users\yo\Miniconda3\Scripts" and renamed it as schedule.bat and added my script (copy pasted it) on the end of the file.

    Then i can schedule a task on windows that executes schedule.bat everyday

提交回复
热议问题