How to run system with space within the cmd
Mostrar comentarios más antiguos
Dear All, I am trying to execute the following command in matlab windows OS. e.g. system('C:\program files\a.exe')
It seems the system command can only recognize 'c:\program'. My question is how can i make matlab know i want to execute the a.exe file. This exe file is a very large one, and i do not want to reinstall it.
Thanks for all your help, Hailiang
Respuestas (2)
Walter Roberson
el 24 de Mzo. de 2011
system('"C:\program files\a.exe"')
hailiang shen
el 25 de Mzo. de 2011
1 voto
1 comentario
Walter Roberson
el 25 de Mzo. de 2011
system(['"C:\program files\a.exe" argument1 argument2 <', inputfilename])
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!