Forum Discussion
Diane1979
Sep 01, 2021Copper Contributor
Task Scheduler Running .bat but not executing code
I am trying to set up a task in the Windows Task Scheduler that will run a .bat file that runs python code to kick off an API and then generate .csv files. When I run the .bat file manually, it does everything I want it to do. However, when I try and run it via the Task Scheduler, it doesn't do anything. The history for the task says that the .bat file completed, but the API was not triggered and the .csv files were not created. What could I be doing wrong? I don't think it can be a permissions issue, as I said I can run the .bat manually as the user running the tasks and it works. Attached is the snapshot of the .bat that I'm trying to run.
No RepliesBe the first to reply