@ShadowThief: Starting a dev cmd prompt and running some commands. if another batch file is called within the dev cmd window, it is a rather awkward task (pour moi) to close the dev window. e.g.
Code: Select all
Start dev cmd prompt
Run my.bat in the shell
my.bat completes execution
dev cmd window is still open- we want it begone when my.bat returns
But with the OP edit, the dev environment can be invoked in any batch file.
Suppose then we create a batch file with the name "devbat.bat". In light of the note from
MSDN:
Several command-line tools or tool options require Administrator permission. To use them, we recommend that you open a Command Prompt window by using the Run as Administrator option (on the shortcut menu for the Command Prompt window you want to open).
should the first part of
Dos_Probie's code go before or after
Code: Select all
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
?
Off topic: Is it the case that upon disabling jscript code in the web browser, it still compiles when invoked from devbat.bat?
Edit: _Dos_Probie's code won't work here as "conditional compilation is turned off". Where does the "/*@cc_on @*/" go?