简体   繁体   English

使用Windows AT命令行提示符运行python脚本

[英]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. 命令行示例是必需的,不能在此命令行上使用“调度程序向导”。

From the 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. 时间基于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.

相关问题 使用Enthought Canopy从Windows命令行运行python脚本 - Running python scripts from Windows command line using Enthought Canopy 在命令提示符中运行python脚本的问题(特别是使用命令行参数)? - Issues running python scripts in Command Prompt (Specifically with command line arguments)? 通过Windows命令行运行Python脚本 - Running Python scripts through the Windows Command Line 使用Windows命令提示符或PowerShell在Spyder中运行脚本 - Running scripts in Spyder using windows Command Prompt or PowerShell 运行没有“python”这个词的 python 脚本 - 命令提示符 - Running python scripts without the word “python” - command prompt 在Cygwin提示上运行Python命令(Windows 8) - Running Python Command on Cygwin Prompt (Windows 8) 从命令行运行python和使用python命令提示符之间的区别 - Differences between running python from the command line and using the python command prompt Python:无法使用Python脚本打开新的命令提示符会话并通过命令行(Windows)运行程序 - Python: Unable to open a new command prompt session and run a program through command line (windows) using Python script 在特定位置打开命令提示符,然后使用 python 在该位置运行带有一些命令行参数的脚本 - Open a command prompt at a specific location followed by running a script at that location with some command line arguments using python 在命令提示符下运行Python - Running Python in a command prompt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM