Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running executables using Windows batch files

I have an application in which I would like to run many executables using a batch file (in my case a program called AMDIS, http://chemdata.nist.gov/mass-spc/amdis/downloads/). On the Windows command prompt it works if I type

C:\NIST08\AMDIS32\AMDIS_32.EXE C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​F /S /E

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.

Now I would like to make these calls repeatedly using a batch file in Windows 7. I tried making a batch file with

START C:\NIST08\AMDIS32\AMDIS_32.EXE C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​‌​F /S /E

but this doesn't seem to work. Does anyone know how I should do this?

cheers, Tom

EDIT: based on the info in forum http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/fdb993d9-6a9c-4459-aedb-0283f2d6935d 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!!

like image 936
Tom Wenseleers Avatar asked Apr 29 '26 04:04

Tom Wenseleers


1 Answers

:X
C:\NIST08\AMDIS32\AMDIS_32.EXE C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​F /S /E
goto X
like image 57
Elazar Avatar answered May 02 '26 02:05

Elazar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!