title: Scheduling Python script using Python CronTab on Windows 7
body: <p>I want to schedule a python script using the python-crontab module on Windows platform. Found the following snippet to work around but having a hard time to configure. Script name <code>cronTest.py</code>:</p>
  
  <pre><code>from crontab import CronTab
  file_cron = CronTab(tabfile='filename.tab')
  mem_cron = CronTab(tab="""
  * * * * * command
  """)
  </code></pre>
  
  <p>Let's say, for example, I want to print date &amp; time for ever 5 mins using the following script, named <code>dateTime.py</code>:</p>
  
  <pre><code>import datetime
  with open('dateInfo.txt','a') as outFile:
      outFile.write('\n' + str(datetime.datetime.now()))
  </code></pre>
  
  <p>How do I execute <code>dateTime.py</code> and setup the cron job for every 5mins through <code>cronTest.py</code>.</p>