[英]Task scheduler run my python script but it does nothing
I have a windows server 2012, where I need to move some .hash
file from one directory to another one.我有一个 windows 服务器 2012,我需要将一些
.hash
文件从一个目录移动到另一个目录。
I build a simple python script that runs well when I launch it manually, the files are all moved.我构建了一个简单的 python 脚本,当我手动启动它时运行良好,所有文件都被移动了。
Now I need to schedule windows for run it every 5 minutes.现在我需要安排 windows 每 5 分钟运行一次。 Task scheduler schedule it, and every 5 minutes execute it, but simply the files are no more moved, even if Task Schedule says it runned successfully.
任务计划程序安排它,每 5 分钟执行一次,但只是文件不再移动,即使任务计划说它运行成功。
I googled a lot of similar question, trying to fill the start in
field, build a .cmd
script and other things like that, none of these worked.我在谷歌上搜索了很多类似的问题,试图填补现场的
start in
,构建一个.cmd
脚本和其他类似的东西,这些都没有奏效。
How can I fix it?我该如何解决?
I found out later that there was something wrong with admin's permissions.后来我发现管理员权限有问题。
With the correct user now all works fine.使用正确的用户现在一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.