簡體   English   中英

任務調度器+python+bat文件

[英]Task scheduler +python + bat file

我正在嘗試在任務計划程序中安排任務我已經創建了一個批處理文件,如下所示

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

以上是我的批處理文件的內容。 當我運行批處理文件時,我可以獲得 output。 我正在執行的代碼沒有任何問題。 但是對於任務計划,我遵循以下步驟

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 

我需要操作選項卡中的幫助

僅在第 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM