MATLAB: How to load .prj file from windows command prompt

batch fileMATLABproject file

Hi there,
I am new to Matlab and project files. I have to load .prj file which will generate some files for my project. I am able to load by double clicking on the .prj file from GUI but I want to load from command window. I have to write a bat file which will invoke the .prj file and load automatically.
Currently I am using this command from my windows command prompt, which will open matlab but doesn't do anything.
matlab load('D:\automation\simulink\autogen\autogen.prj').
Can anyboday please help me to resolv this issue? Thanks in advance – Kondal

Best Answer

matlab.exe -r "open('D:\automation\simulink\autogen\autogen.prj')"