How to get the path of exe file?
40 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
edit
am 21 Dez. 2016
Beantwortet: Stefanie Schwarz
am 21 Okt. 2024
I have convert my .m file(a function) to .exe file, and i run the .exe file from cmd like this:
Now i want to get the path of exe file automatic(in this example it is D:\test\),how can i get it?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 21 Dez. 2016
6 Kommentare
Walter Roberson
am 12 Mai 2020
I don't know at the moment, but you are welcome to count them yourself.
Walter Roberson
am 15 Mai 2020
E Swan: the number that are "now useless because they only contain a dead link" is low. When you click on a view_thread link, the page that you are taken to now includes a link to the relevant Google Groups discussion.
Weitere Antworten (4)
Image Analyst
am 21 Dez. 2016
See my attached function.
3 Kommentare
Bogdan Dzyubak
am 21 Jul. 2018
Where should the MCR_CACHE_ROOT be set? Would I have setenv(MCR_CACHE_ROOT,'.') as part of the compiled code, or is there a different method?
Image Analyst
am 21 Jul. 2018
That should be fine. If you don't set it, it picks some hidden place, like maybe something under c:\users somewhere. If you do that then you need to make sure you use the -a option to include any files you need to load at runtime. If you use dot, then you can put them as subfolders of your installation folder and put them there with a third party installer (like I do).
Stefanie Schwarz
am 21 Okt. 2024
See also:
How can I find the directory containing my compiled application?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!