[英]Task scheduler +python + bat file
I am trying to schedule a task in task scheduler I have created a batch file as below我正在尝试在任务计划程序中安排任务我已经创建了一个批处理文件,如下所示
"C:\ProgramData\Anaconda3\python.exe"
"C:\helloo\mail.py"
pause
the above is the content of my batch file.以上是我的批处理文件的内容。 When i run the batch file i can able to get the output.
当我运行批处理文件时,我可以获得 output。 i am not facing any issue with the code which i am executing.
我正在执行的代码没有任何问题。 But with task schedular i am following the below steps
但是对于任务计划,我遵循以下步骤
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
I need assistance in Actions tab我需要操作选项卡中的帮助
changes in only 4 th point,it is working as expected仅在第 4 点发生变化,它按预期工作
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.