【问题标题】:Running python scripts using Windows AT command line prompt使用 Windows AT 命令行提示符运行 python 脚本
【发布时间】:2016-04-28 09:18:51
【问题描述】:

问题是:应该如何看待AT命令来安排python执行的一次性任务。这是我尝试过的:

at 20.00 "cmd python e:/path/to/file/script.py"
at 20.00 c:/Python27/python.exe e:/path/to/file/script.py

都不行,请指教。命令行示例是必需的,不能在这个上使用调度程序向导。

【问题讨论】:

    标签: python python-2.7 scheduler administration at-job


    【解决方案1】:

    来自docs

    time:使用此参数指定任务运行的时间。时间指定为小时:分钟,基于 24 小时制。例如,0:00 表示午夜,20:30 表示晚上 8:30。

    所以你使用的时间格式20.00不正确,应该是20:00

    【讨论】:

    • 完美运行,非常感谢!抱歉这个愚蠢的问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-10
    • 1970-01-01
    • 1970-01-01
    • 2015-12-17
    • 1970-01-01
    • 1970-01-01
    • 2014-09-08
    相关资源
    最近更新 更多