This seems to be a recurrent question in many forums but after applying most of the solutions found, it's still not working.
The end of my python scripts creates two CSV files using the following code:
file1.to_csv(csvfilename, sep=",", encoding='utf-8', index=False)
file2.to_csv(csvfilename2, sep=",", encoding='utf-8', index=False)
I created a bat file within the same folder of my python script with the following code in:
@echo off
"C:\Program Files\Python35\python.exe" "Pythonscript1.py"
And in the task scheduler i created a task. I added an action and modified the Program/script with the path of my bat file:
"C:\Users\name\PycharmProjects\Templates\executePy.bat"
After run the task, no csv files have been created.