Oct-12-2020, 04:05 PM
I have Anaconda on a Windows Server. I would like to run a script at ever start up from Task Scheduler. I've only ever been running my code from Spyder directly. How can I call the script to run and not to open up from a Batch file?
Note: Python isn't seen from the CMD line using python
I'm guessing the Bat file would be something like:
%windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
"python C:\Users\Administrator\Desktop\HelloWorld.py"
Note: Python isn't seen from the CMD line using python
I'm guessing the Bat file would be something like:
%windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
"python C:\Users\Administrator\Desktop\HelloWorld.py"