- Local time
- 8:36 PM
- Posts
- 43
- OS
- Windows 11 Pro
As I try to teach myself python, I built a script to do a daily update of an Excel spreadsheet. I've not yet stumbled on a workable Task Scheduler configuration.
Scheduler:
Running the Scheduler at 3 AM or clicking on Run in the Scheduler does not update Excel. Running "C:\Users\truck\AppData\Local\Programs\Python\Python314\python.exe G:\workspace\apples\temp-forecast.py" (sans quotes) at the powershell command line will update Excel. I ran a short version of this in Google that suggested an addendum to the arguments that would create a log.txt but that never worked eithter.
Any idea on how to automate this? Or even how to get an error log?
Scheduler:
Run whether or not logged in: Checked
Highest privileges: Checked
Action: C:\Users\truck\AppData\Local\Programs\Python\Python314\python.exe
Arguments: G:\workspace\apples\temp-forecast.py
Start in: G:\workspace\apples
Python: Script downloads a single sheet Excel file showing 14 days of hourly temperatures plus the time of sunset for the same 14 days. (Codling moths larvae are on the move on apple trees when temperature at sunset is 62° or greater.)Running the Scheduler at 3 AM or clicking on Run in the Scheduler does not update Excel. Running "C:\Users\truck\AppData\Local\Programs\Python\Python314\python.exe G:\workspace\apples\temp-forecast.py" (sans quotes) at the powershell command line will update Excel. I ran a short version of this in Google that suggested an addendum to the arguments that would create a log.txt but that never worked eithter.
Any idea on how to automate this? Or even how to get an error log?
- Windows Build/Version
- Windows 11 Pro; Build 26200.8246
My Computer
System One
-
- OS
- Windows 11 Pro
- Computer type
- PC/Desktop
- Manufacturer/Model
- Dell Slim ECS1250
- CPU
- Intel(R) Core(TM) Ultra 7 265 2.40 GHz
- Memory
- 16.0 GB
- Graphics Card(s)
- Intel Graphics
- Monitor(s) Displays
- HP Pavilion 20xi






