How to get name of the standalone application with .exe extension while it is executing?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Walter Roberson
2023 年 3 月 14 日
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 件のコメント
Image Analyst
2023 年 3 月 14 日
See attached utility that I use to get the filename of the executing standalone executable.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!