I also copied the string into cmd directly: worked.
problem trying to Install *.exe with Matlab 'system' command
6 views (last 30 days)
Show older comments
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!
Accepted Answer
More Answers (1)
Jan
on 7 Feb 2018
Check the settings of your virus protection. Does it allow to start executables from the concerned folder?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!