jarhead
jarhead

Reputation: 1901

Running a cmd file without GUI popping up

I'm running a list of commands in a file:

matlab -nodesktop -nodisplay -nojvm -nosplash .............
xwin32 --session ....................

I would like to have them run without the GUI popping up in Windows and more of all I would like the command prompt GUI not to pop up, anyone have any idea how to do it? tnx

Upvotes: 0

Views: 6182

Answers (1)

Amro
Amro

Reputation: 124563

Best you can do on Windows is:

batchScript.cmd

start /B /MIN matlab.exe -nodesktop -noFigureWindows -nosplash ^
    -r "surf(peaks); saveas(gcf, 'output.eps'); quit;"

You can add the -wait option if you need to process the results from MATLAB in a script (next command depends on output from previous one).

Upvotes: 1

Related Questions