任务调度器+python+bat文件

2024-09-26 22:12:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在任务计划程序中计划任务 我已经创建了一个批处理文件 如下

"C:\ProgramData\Anaconda3\python.exe" 
"C:\helloo\mail.py" 
 pause

以上是我的批处理文件的内容。 当我运行批处理文件时,我可以获得输出。我执行的代码没有任何问题。 但任务调度 我遵循以下步骤

1.open task schedular 
2.create task -- provided the name of the task and description 
    clicked on run whether the user is logged in or not and run with highest privileges 
3.in triggers -->new --> onetime --ok 
4.Action --> new--> action :start a program -- program script: where i kept my batch file.
5.cliked on finish 
6. i can able to find the task in task schedular but it is not showing as running 

我需要行动方面的帮助


Tags: and文件therunin程序newtask
1条回答
网友
1楼 · 发布于 2024-09-26 22:12:48

只有第四点变化,它的工作如期进行

 1.open task schedular 
 2.create task   provided the name of the task and description 
clicked on run whether the user is logged in or not and run with highest 
 privileges 
 3.in triggers  >new  > onetime  ok 
  4.Action  > new > program/script: where I kept my batch file.
   5.cliked on finish 

相关问题 更多 >

    热门问题