I am trying to open a software. Using command prompt, I can open it in the following way. How can I open it using Matlab system command? I need to use "display off" to suppress a pop-up window.
cd C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23
MaxsurfModeler64.exe display off

 Réponse acceptée

Chunru
Chunru le 27 Sep 2022
Modifié(e) : Chunru le 28 Sep 2022
cd("C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23")
cmd = "MaxsurfModeler64.exe display off"
system(cmd)

4 commentaires

Rounak Saha Niloy
Rounak Saha Niloy le 28 Sep 2022
I am having this-
Chunru
Chunru le 28 Sep 2022
need bracks over the folder.
Rounak Saha Niloy
Rounak Saha Niloy le 5 Oct 2022
cd("C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23");
cmd = "MaxsurfModeler64.exe display off";
system(cmd);
The code does not proceed to the next line. It successfully opens the MaxsurfModeler64.exe but it does not proceed further. What should I do?
Marcel
Marcel le 15 Mai 2024
Can I use display off when I need to have a "&" at the end of a command to make the program run in the background? For example command "XXX.exe display off &" displays the cmd. Command "XXX.exe & display off" parameter & does not work.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange

Produits

Version

R2022b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by