Borrar filtros
Borrar filtros

system command pressing return

6 visualizaciones (últimos 30 días)
Thomas Kurian
Thomas Kurian el 28 de Mayo de 2020
Comentada: Thomas Kurian el 29 de Mayo de 2020
I am trying to run a system command from matlab, but I need to hit enter twice before any output comes out.
If I run it in the command window I can hit enter twice and then I get the output, but I also need to run this from a script as well where I don't want to be press enter. I just want it to continue.
Is there a way to call the system command and specify that I need to hit enter?

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 28 de Mayo de 2020
This trick has worked many times. Try it.
Create a text file called KeyInput.txt, in which you hit return twice and save it. Basically it is a blank text file. Name it differetnly if you want.
Then run system('MyCommand.exe < KeyInput.txt')

Más respuestas (0)

Categorías

Más información sobre Desktop en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by