How to get name of the standalone application with .exe extension while it is executing?
조회 수: 1 (최근 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!