Skip to content

Instantly share code, notes, and snippets.

@dgroft
Last active December 21, 2015 18:19
Show Gist options
  • Save dgroft/6346213 to your computer and use it in GitHub Desktop.
Save dgroft/6346213 to your computer and use it in GitHub Desktop.
Launching Visual Studio 2008 with temporary environment variables and temporarily appending to PATH.
' invoke vsvars32.bat. just do it.
call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
' temporary environment variables assignment
' set ENV_VAR = value
' temporary path modification
set path=%path%;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
' launch visual studio
devenv SuperAwesomeSolution.sln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment