I have this build file:
@echo off
call "%VS120COMNTOOLS%"\\vsvars32.bat
echo Deleting old exe...
del build_win32\dist\bin\OgreApp_d.exe
cd build_win32
echo Building As Debug
msbuild /detailedsummary /p:Configuration=Debug /p:Platform=x86 /t:build ALL_BUILD.vcxproj
echo Done building, Exiting.
cd dist\bin\
start OgreApp_d.exe
cd ../../../
And to run it I run from cmd build
. The problem is that since I do not exit cmd between builds, the PATH
grows and grows because of "%VS120COMNTOOLS%"\\vsvars32.bat
until it refuses to run because path is too long. Is there a way I can start this in another shell but in the same place.
I could do
start cmd.exe /K "build.bat"
but it opens a new window and it is more complicated than just build