[英]Running python scripts using Windows AT command line prompt
The question is: How should exactly look the AT command to schedule a one-time task to be executed by python. 问题是:如何准确看待AT命令以安排一次由python执行的一次性任务。 Here is what I tried: 这是我尝试过的:
at 20.00 "cmd python e:/path/to/file/script.py"
at 20.00 c:/Python27/python.exe e:/path/to/file/script.py
Neither is working, please advice. 两者均不起作用,请指教。 Command line example is required, can't use Scheduler Wizard on this one. 命令行示例是必需的,不能在此命令行上使用“调度程序向导”。
time: Use this parameter to specify the time when the task is to run. 时间:使用此参数可以指定任务运行的时间。 Time is specified as hours:minutes based on the 24-hour clock. 时间基于24小时制指定为小时:分钟。 For example, 0:00 represents midnight and 20:30 represents 8:30 PM 例如,0:00代表午夜,20:30代表晚上8:30
So the time format you're using 20.00
is incorrect, and should be 20:00
. 因此,您使用的时间格式为20.00
不正确,应该为20:00
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.