在vcvars32.bat第一行后复制
@SET VSINSTALLDIR=c:\Program Files\Microsoft Visual Studio 10.0
@SET VCINSTALLDIR=c:\Program Files\Microsoft Visual Studio 10.0\VC
@SET FrameworkDir32=c:\Windows\Microsoft.NET\Framework
@SET FrameworkVersion32=v4.0.30319
@SET Framework35Version=v3.5
在下面三行前面加 ::
::
@call :GetVSCommonToolsDir
::@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLSDIR
::@call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit