How to get the path of exe file?
43 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2016-12-21
6 个评论
Walter Roberson
2020-5-15
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.
更多回答(4 个)
Image Analyst
2016-12-21
See my attached function.
3 个评论
Bogdan Dzyubak
2018-7-21
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
2018-7-21
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
2024-10-21
See also:
How can I find the directory containing my compiled application?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!