Problems running python script by windows task scheduler that does pscp

后端 未结 6 1890
轮回少年
轮回少年 2020-12-08 23:16

Not sure if anyone has run into this, but I\'ll take suggestions for troubleshooting and/or alternative methods.

I have a Windows 2008 server on which I am running s

6条回答
  •  执笔经年
    2020-12-08 23:54

    You can use the windows Task Scheduler, but make sure the "optional" field "Start In" is filled in.

    In the Task Scheduler app, add an action that specifies your python file to run "doSomeWork" and fill in the Start in (optional) input with the directory that contains the file.. So for example if you have a python file in:

    C:\pythonProject\doSomeWork.py
    

    You would enter:

    Program/Script: doSomeWork.py
    
    Start in (optional): C:\pythonProject 
    

提交回复
热议问题