Add it as an external tool for Visual Studio (2008 shown here should be similar in other versions):
- Select "Tools", "External Tools ...".
- Click Add
- Title: & Cmd
- Command: cmd.exe
- Arguments: / k "c: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ VC \ vcvarsall.bat" x86
- Start Directory: $ (SolutionDir)
Pay attention to the arguments in the Visual Studio 2008 Command Prompt shortcut. Yours may be different.
You can customize the toolbar and add a button for this command, using also "Tools", "Customize ...". Open the Tools menu and find the last created external tool and drag it to the toolbar.
When you click the button, it will open a command prompt in the root directory of the current solution.
Mark tolonen
source share