How to run batch file(having command to run .exe file) from matlab? -


i trying run batch file matlab. in batch file have command run .exe file. using dos('myfile.bat') command run batch file matlab, showing error as

"file.exe not recognized internal or external command, operable program or batch file."  

what error? , how should deal this.

if understand correctly try run exe in matlab. don't have put inside batch file, need call in way:

! file.exe 

or can setup string , call eval:

command = [ '! ' filename ]; eval( command ); 

but think problem should specify path of exe (or bat if like) absolute path.

! d:\development\stuff\app.exe 

and of course pass arguments if required.

! d:\development\stuff\app.exe -arg1 -arg2 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -