运行 python 脚本使用 Windows AT 命令行提示符
Running python scripts using Windows AT command line prompt
问题是:python调度一次性任务执行的AT命令具体应该怎么看呢?这是我尝试过的:
at 20.00 "cmd python e:/path/to/file/script.py"
at 20.00 c:/Python27/python.exe e:/path/to/file/script.py
都不行,请指教。命令行示例是必需的,不能在这个上使用调度程序向导。
来自docs
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. For example, 0:00 represents midnight and 20:30 represents 8:30 P.M.
所以您使用的时间格式20.00
不正确,应该是20:00
。
问题是:python调度一次性任务执行的AT命令具体应该怎么看呢?这是我尝试过的:
at 20.00 "cmd python e:/path/to/file/script.py"
at 20.00 c:/Python27/python.exe e:/path/to/file/script.py
都不行,请指教。命令行示例是必需的,不能在这个上使用调度程序向导。
来自docs
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. For example, 0:00 represents midnight and 20:30 represents 8:30 P.M.
所以您使用的时间格式20.00
不正确,应该是20:00
。