We have been looking for this solution for many years
For those of you that call MS vcvars32.bat please call setlocal before, and call endlocal after calling vcvars32.bat
https://stackoverflow.com/questions/14969399/how-to-reset-environment-after-running-vcvars32-bat
that simple!