フィルターのクリア

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 Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by