简体   繁体   English

从批处理文件运行.exe(我是新手)

[英]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. 我通常使用以下命令:C:\\ Users \\ Paulo Victor \\ Google Drive \\ LCCV \\ Simulacoes \\ MODELO II \\DiâmetroVariável> demoop_parallel Caso 16.ofs进入cmd提示符,它可以正常工作。

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. 使用start命令时,第一个带引号的字符串用作窗口标题。 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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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