简体   繁体   中英

run .exe from batch file (I'm new)

I need to create a batch file to run some simulations for me automatically.

I usually use this: C:\\Users\\Paulo Victor\\Google Drive\\LCCV\\Simulacoes\\MODELO II\\Diâmetro Variável>demoop_parallel Caso 16.ofs into cmd prompt and it works.

So, I tried to create a batch file and didn't work for me, I put:

start "C:\Users\Paulo Victor\Google Drive\LCCV\Simulacoes\MODELO II\Diâmetro Variável\demoop_parallel.exe" "C:\Users\Paulo Victor\Google Drive\LCCV\Simulacoes\MODELO II\Diâmetro Variável\Caso 16.ofs" 

and it does not work, what am I doing wrong?

I know, it is a simple question, but again, I'm really new.

The first quoted string is used as the Window Title when using the start command. So use an empty set of quotes at the beginning.

start "" "C:\Users\Paulo Victor\Google Drive\LCCV\Simulacoes\MODELO II\Diâmetro Variável\demoop_parallel.exe" "C:\Users\Paulo Victor\Google Drive\LCCV\Simulacoes\MODELO II\Diâmetro Variável\Caso 16.ofs"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM