In Visual Studio 2005:
- Go to Tools > External tools
- Click Add and enter the following information
- Title: Cm&d
- Command: %comspec%
- Arguments: /k ""C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"" x86
- Initial Directory: $(ItemDir)
- Click Apply / OK
In Visual Studio 2008:
- Go to Tools > External tools
- Click Add and enter the following information
- Title: Cmd
- Command: %comspec%
- Arguments: /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
- Initial Directory: $(ItemDir)
- Click Apply / OK