title: Running Python script in my Windows .bat file
body: <p>I have a .bat file, in the file I did:</p>
  
  <ol>
  <li>cd to a direcotry</li>
  <li>copied the files to another directory</li>
  <li>run the <code>to-csv.vb</code> program on the files</li>
  <li>deleted some files</li>
  <li>cd to another direction</li>
  <li>run my Python script. </li>
  </ol>
  
  <p>I'm stuck at step 6.  Here is my code:</p>
  
  <pre><code>cd "Python\test1"
  copy  "Python\test1\"*.xls*  "Python\test1\move"
  
  FOR /f "delims=" %%i IN ('DIR *.xls* /b') DO to-csv.vbs "%%i" "%%i.csv" 
  del "H2*.csv"
  del "H6*.csv"
  del "H3*.xlsx"
  
  cd "H:\UCLAHealth\HIIN\Data Process\Python" #my python script1 is in this directory 
  
  python script1.py  #this line didn't work.  
  </code></pre>
  
  <p>I'm ok with steps 1-5, but stuck on step 6. What's the correct syntax for running a Python script in .bat file? </p>