Running a cmd file without GUI popping up

断了今生、忘了曾经 提交于 2021-02-11 12:38:24

问题


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


回答1:


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).



来源:https://stackoverflow.com/questions/10846734/running-a-cmd-file-without-gui-popping-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!