problem trying to Install *.exe with Matlab 'system' command
古いコメントを表示
Dear Experts,
I am trying to install and exe file using the system command. The function fails, resulting in a -1 status and no cmd output message.
The command is:
[status,cmdm] = system('D:\dbLNI_Finder.exe')
The file exists:

If I try to perform the same command for the same file but in a specific location (a pen drive) it works:
system('H:\for win\dbLNI_Finder.exe')
I tried to copy and replace the file several times, but no.
Any idea? Thanks!
5 件のコメント
Brunno Machado de Campos
2018 年 2 月 7 日
@Brunno: Which string? Was it a command shell started with admin privileges? With which privileges does your Matlab run?
I'd expect this to fail:
system('H:\for win\dbLNI_Finder.exe')
due to the space in the path.
I'm even not sure what "install and exe file using the system command" exactly means. Do you want to run it or is this an installer, which e.g. asks for admin privileges?
Brunno Machado de Campos
2018 年 2 月 7 日
Jan
2018 年 2 月 7 日
@Brunno: Your problem is solved now. Then it does not matter, that I still do not understand the explanations.
Does
system('C:\Users\BMC\DBlni_Find\dbLNI_Finder.exe')
work or not?
As far as I understand, you do not want to install this executable, but run it.
Brunno Machado de Campos
2018 年 2 月 7 日
採用された回答
その他の回答 (1 件)
Jan
2018 年 2 月 7 日
0 投票
Check the settings of your virus protection. Does it allow to start executables from the concerned folder?
3 件のコメント
Brunno Machado de Campos
2018 年 2 月 7 日
Jan
2018 年 2 月 7 日
My antivirus program does not allow all applications to start executables from arbitrary folders. This is thought to stop crypto-trojans.
You did not tell us, if you have opened the Windows Command Shell with admin privileges or not.
Brunno Machado de Campos
2018 年 2 月 7 日
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!