title: How can I stop a python script on a batch file
body: <p>I want to start a python script and then automatically close that script after 2 minutes, run another command, and keep doing the same thing again like this (loop) forever :</p>
  
  <pre><code>Cd c:/location.of.script/
  pythonscript.py
  Stop (like ctrl+c) pythonscript.py after 120s
  Del -f cookies.file
  .
  .
  . 
  </code></pre>
  
  <p>Is this even possible with a batch file on windows 10?  If so, can someone please help me with this? </p>
  
  <p>I’ve been looking everywhere but found nothing except the <code>exit()</code> command which stops the script from inside - this isn’t what I want to do.</p>