필터 지우기
필터 지우기

Executing multiple statements in the command prompt

조회 수: 8 (최근 30일)
Deepak
Deepak 2015년 9월 28일
답변: Walter Roberson 2015년 9월 28일
Hello,
I would like to execute the following statements in the cmd prompt from Matlab.
1. First I would like to set the Visual Studio environment parameters. This I do with
dos(['%comspec% /k "' VisualStudio '" x86 >']) ..where VisualStudio is the path to the vcvarsall.bat
2. Then I would like to execute in the same dos prompt above the command
nmake /F makefile.nmake clean
3. Third step is
nmake /F makefile.nmake all
My problem is that after the first dos statement, the statement 2 gives 'nmake' is not recognized as an internal or external command, operable program or batch file.
I need to execute statements 2 and 3 in the same dos prompt. I tried writing a batch file but for some reason the batch file does not execute. After the statement 1 I get Microsoft VS environment set and the rest of the commands do not execute.
Could someone help me out.
Thanks a lot.
Regards
Deepak

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 28일

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by