'Python script when scheduled gives PermissionError: [WinError 5] Access is denied
I have .bat file which I want to run by task scheduler. Bat file has something like:
"C:\Python3\python.exe" "%PATH_to_script.py"
And when I try to run this from task scheduler I get this error:
PermissionError: [WinError 5] Access is denied
When I try to run the .bat file from file explorer by myself is working without any trouble.
Why is this happening and how to fix this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|