How to get name of the standalone application with .exe extension while it is executing?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a standalone application, which is invoked with-
matlabXX.exe 'abc.txt'
Now when it is executing, I can get 'abc.txt' using vararg but how can I get 'matlabXX.exe'?
1 Commento
Risposte (2)
Walter Roberson
il 14 Mar 2023
Using .exe implies MS Windows.
You can use System.Diagonstics.Process and related facilities methods to find your current process identifier and use that to find the name of your process.
0 Commenti
Image Analyst
il 14 Mar 2023
See attached utility that I use to get the filename of the executing standalone executable.
0 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!