Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Set Environment Variables 

The vsvars32.bat file sets the appropriate environment variables to enable command line builds. For more information about vsvars32.bat, see the following Knowledge Base article:

  • Q248802 : Vcvars32.bat Generates Out of Environment Message

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

To run VSVARS32.BAT

  1. At the command prompt, change to the Common7\Tools subdirectory of your installation.

  2. Run VSVARS32.bat by typing VSVARS32.

    Caution noteCaution

    VSVARS32.bat can vary from machine to machine. Do not replace a missing or damaged VSVARS32.bat file with a VSVARS32.bat from another machine. Rerun setup to replace the missing file.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft