简体   繁体   English

任务调度程序运行我的 python 脚本,但它什么也不做

[英]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.

相关问题 我的 Python 脚本无法从任务计划程序运行 - My Python Script does not run from Task Scheduler 为什么Windows 10 Task Scheduler执行我的Python脚本时会产生不同的运行 - Why does my Python script run differently when executed by Windows 10 Task Scheduler 任务计划程序打开命令提示符但不运行 python 脚本 - Task Scheduler opens command prompt but does not run python script Python 脚本不会在任务计划程序中运行“无论用户是否登录都运行” - Python script will not run in Task Scheduler for "Run whether use is logged on or not" 批处理文件中的Python脚本无法在任务计划程序中运行 - Python script from batch file won't run in task scheduler 在 c# 中运行 Python 脚本什么都不做 - Run Python script in c# does nothing Cron 运行我的 Python 脚本,但没有任何反应 - Cron run my Python script but nothing is happening 无法安排 python 脚本通过 Windows 任务计划程序运行 - Cannot schedule a python script to run through Windows Task Scheduler 通过任务计划程序运行时,Python脚本未创建文件 - Python Script not creating file when run through Task Scheduler Windows 任务计划程序无法运行 Python 脚本,错误值:2147944320 - Windows Task Scheduler unable to run Python Script, error value: 2147944320
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM