title: batch file to call an exe application
body: <p>I have a script which I can run perfectly if I call it manually in the command prompt. <br></p>
  
  <pre><code>cd \
  cd impressio
  cd input
  
  for %%f in (.txt)do (
   echo "%%~nf"
  
  "C:\Program Files\Splunk\bin\splunk cmd python" "D:impressio\deployment code\add_null.py" "%%~nf.txt" "%%~nf_processed.txt"
  
  )
  </code></pre>
  
  <p>When I save this script as <code>&lt;filename&gt;.bat</code> and double-click, it always prompts me an error message: <em>"Program Files is not recognized as an internal or external command"</em>.</p>
  
  <p>Is it because of the environment variable setting issue? Did anyone come across such thing before, or does my code have a problem?</p>