使用windows scheduler运行带有args的python脚本

时间:2012-03-12 10:19:40

标签: python scheduled-tasks windows-scheduler

我写了一个脚本,它带有一个开关和args 像:

python testScript.py --runMode 4

在cmd上运行时有效。 我使用Windows调度程序尝试了相同的脚本,但没有运气。是否可以运行使用Windows调度程序而不使用.bat文件的args脚本。我尝试使用使用.bat文件,但我不想运行使用蝙蝠文件 我如何使用scheduler.Any建议实现此脚本运行。

谢谢

1 个答案:

答案 0 :(得分:2)

这不是与python相关的问题。看看它:

http://www.iopus.com/guides/winscheduler.htm

最重要的是我认为:“命令行选项必须放在路径周围的”“旁边。”