shall I open a "windows' *.exe file" by matlab code?

I want to made an GUI in which I plan to open a windows' exe file by matlab code, how?
In addition, shall I search an exe file on windows by matlab code?
Thanks!

답변 (2개)

Image Analyst
Image Analyst 2014년 7월 6일

0 개 추천

Use the system() function. For example:
system('notepad.exe')

댓글 수: 4

vx2008
vx2008 2014년 7월 6일
thank you
what about searching "natepad.exe"?
I mean I should get the path of "notepad.exe" in matlab by code first; and then I can use "system('notepad.exe');" to open the exe file.
Replace notepad.exe with the full pathname of your executable. No need to search for it if you know it in advance.
vx2008
vx2008 2014년 7월 6일
in the fact, sometime i don;t know the path or I should search it on my computer by windows.
Explain why you don't know where the program you want to run is. If you need to , you can search the entire hard drive for it as long as you know the base file name. See my attached demo where I recursively search a folder and all subfolders.

댓글을 달려면 로그인하십시오.

phani kumar
phani kumar 2014년 7월 6일

0 개 추천

winopen('app.exe')

댓글 수: 1

vx2008
vx2008 2014년 7월 6일
Thank you very much.
but do you know how to get its path when you don;t know where it is.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Files and Folders에 대해 자세히 알아보기

질문:

2014년 7월 6일

댓글:

2014년 7월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by