Hide a .bat file run from Command Window

6 vues (au cours des 30 derniers jours)
Christian W. Pedersen
Christian W. Pedersen le 7 Mar 2012
Hi!
I'm running a program in batch mode using Matlab.
When I'm executing this bat file (!Run.bat) Matlab displays the entire simulation from the program (takes about 18 seconds).
When I execute the file with dos('Run.bat &') it runs in about 2 seconds, but Matlab skips the run completely.
So, my question is: Is there some way to run my .bat file without making Matlab show the entire simulation in the Command Window but not 'skip' the simulation?

Réponse acceptée

Christian W. Pedersen
Christian W. Pedersen le 7 Mar 2012
  1 commentaire
Walter Roberson
Walter Roberson le 7 Mar 2012
Heh. I do repeat myself, don't I?

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 7 Mar 2012
!Run.bat > NUL:
If you were using Unix (Linux, OS-X), the equivalent would be
!Run.bat > /dev/null

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by