title: Batch runs python script.. how to close cmd window at end?
body: <p>I have batch file that runs python script. But, once python script finishes, cmd stays open.. How can I close it?</p>
  
  <p>Thank you!</p>
  
  <p>Edit: .bat script looks something like this:</p>
  
  <pre><code>C:\Users\USER\AppData\Local\Programs\Python\Python36\python.exe C:\Users\USER\Documents\Code\python\some-dir\script.py %1 %2
  </code></pre>
  
  <p>And then python script runs, and once it ends, cmd window from batch file remains open.. Can I close it somehow from python script itself or something?</p>
  
  <p>Edit2: Nevermind, figured it out. You can just add <code>exit</code> at end of the batch file, and it will run once the python script ends</p>