使用Windowsbatch file运行可执行文件

我有一个应用程序,我想运行许多可执行文件使用batch file(在我的情况下,一个名为AMDIS的程序, http://chemdata.nist.gov/mass-spc/amdis/downloads/ )。 在Windows命令提示符下,如果我键入,它将起作用

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

AMDIS_32是我想运行的程序,C:\ Users \ Ento \ Documents \ GCMS \ test_cataglyphis_iberica \ queens \ CI23_Q_120828_01.CD F这个文件我希望它分析和/ S / E一些opions。

现在我想重复使用Windows 7中的batch file进行这些调用。我尝试使用batch file

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

但是这似乎不起作用。 有谁知道我该怎么做?

欢呼,汤姆

编辑:基于论坛中的信息http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/fdb993d9-6a9c-4459-aedb-0283f2d6935d我发现我的错误必须与保存我的batch file在UNICODE而不是ANSI编码 – 现在它的工作 – 感谢你们所有!

 @Echo OFF Set /A "Interval=3" PUSHD "C:\NIST08\AMDIS32" :Loop Start /B AMDIS_32.EXE "C:\Users\Ento\Documents\GCMS\test_cataglyphis_iberica\queens\CI23_Q_120828_01.CD‌​F" /S /E Ping -n %INTERVAL% Localhost >NUL Goto :Loop 
 :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