title: Running executables using Windows batch files
body: <p>I have an application in which I would like to run many executables using a batch file (in my case a program called AMDIS, <a href="http://chemdata.nist.gov/mass-spc/amdis/downloads/" rel="nofollow">http://chemdata.nist.gov/mass-spc/amdis/downloads/</a>).
  On the Windows command prompt it works if I type</p>
  
  <pre><code>C:\NIST08\AMDIS32\AMDIS_32.EXE C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​F /S /E
  </code></pre>
  
  <p>where AMDIS_32 is the program I want to run and C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​F the file I want it to analyze and /S /E some opions.</p>
  
  <p>Now I would like to make these calls repeatedly using a batch file in Windows 7.
  I tried making a batch file with</p>
  
  <pre><code>START C:\NIST08\AMDIS32\AMDIS_32.EXE C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​‌​F /S /E
  </code></pre>
  
  <p>but this doesn't seem to work. Does anyone know how I should do this?</p>
  
  <p>cheers,
  Tom</p>
  
  <p>EDIT: based on the info in forum <a href="http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/fdb993d9-6a9c-4459-aedb-0283f2d6935d" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/fdb993d9-6a9c-4459-aedb-0283f2d6935d</a> I found that my mistake had to do with saving my batch file in UNICODE rather than ANSI encoding - now it works - thanks to you all!!</p>