使用python脚本安排任务

时间:2015-11-20 17:59:28

标签: python

我正在尝试安排任务,但它给了我以下错误

The filename, directory name or volume label is incorrect

有人可以帮我解决这个问题。我对python比较陌生。以下是我的代码:

import os, time 
runHr = 23 #Hour of the day that you would like to run the batch file
runMin = 00 #Minute of the hour the batch file is to be run
while True:
        currTime = time.localtime ()
        if currTime.tm_hour == runHr and currTime.tm_min == nMin:
                os.system("C:\subdir\Unzip.bat ")
                time.sleep (79200)

0 个答案:

没有答案