vs2010中设置环境变量方法

How to: Set Environment Variables

Visual Studio 2010

The vsvars32.bat file sets the appropriate environment variables to enable command-line builds. For more information about vsvars32.bat, see Knowledge Base article Q248802: You receive the "Out of environment space" error message when you execute the Vcvars32.bat batch file.

If the current version of Visual Studio is installed on a computer that also has an earlier version of Visual Studio, you should not run vsvars32.bat or vcvars32.bat from different versions in the same Command Prompt window.

To run VSVARS32.BAT

  1. At a command prompt, change to the C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools (安装visual studio的目录不同而不同)subdirectory of your installation.

  2. Run VSVARS32.bat by typing VSVARS32.

原文地址:https://www.cnblogs.com/guanshan/p/guan012.html