user4302560
user4302560

Reputation:

Run an EXE file from MATLAB 64bit (Windows 8.1 64Bits)

I want to run an EXE file named "LBRM.EXE" by MATLAB. I try:

dos('lbrm.exe')

and I get error:

'lbrm.exe' is not recognized as an internal or external command, operable program or batch file.

Exactly the same code works fine in 32bit MATLAB.

mesh -setup did not help!

Upvotes: 0

Views: 122

Answers (2)

oro777
oro777

Reputation: 1110

You have to add the EXE in your environmental variables in Windows or to move to the directory of the EXE file. To move to the directory of the EXE file, use CD('EXE file folder') then you can execute your file by using the system command. system('lbrm.exe')

Upvotes: 0

gnovice
gnovice

Reputation: 125874

Since it appears you're not returning any arguments from the call, you could see if you have better luck with the bang operator:

!lbrm.exe

Upvotes: 1

Related Questions