Why [Errno 13] Permission denied?

时间:2017-06-30 21:10:00

标签: python windows scheduled-tasks

So, I made this .py script that basically downloads excel tables from the USDA. When I run it manually from the prompt command it works, but when I use Task Scheduler to run it, it gives me the: Errno 13 Permission denied. click the link below. My question is, how can it run from the prompt command when I do it manually but not work when I use task scheduler?

enter image description here

3 个答案:

答案 0 :(得分:0)

右键单击 - >以管理员身份运行

应解决您的问题。

答案 1 :(得分:0)

尝试为xls文件提供读写权限。 https://msdn.microsoft.com/en-us/library/bb727008.aspx

答案 2 :(得分:0)

我遇到了同样的问题,这就是我解决它的方法: - 右键单击​​任务 - 将打开一个新窗口,然后在窗口的最底部检查"以最高权限运行"这应该可以解决问题。

检查下图。 enter image description here