from win32api import *
from time import *
i = 1
while 1:
ShellExecute(0, None, "c:\\test.bat", None, "c:\\", True)
print "The job has been executed", i, "times till now."
i += 1
sleep(10 * 60)
from time import *
i = 1
while 1:
ShellExecute(0, None, "c:\\test.bat", None, "c:\\", True)
print "The job has been executed", i, "times till now."
i += 1
sleep(10 * 60)