VS2010--canot determine the locationof the vs common tools folder

vcvars32.bat第一行后复制

@SET VSINSTALLDIR=c:Program FilesMicrosoft Visual Studio 10.0 
@SET VCINSTALLDIR=c:Program FilesMicrosoft Visual Studio 10.0VC
@SET FrameworkDir32=c:WindowsMicrosoft.NETFramework
@SET FrameworkVersion32=v4.0.30319
@SET Framework35Version=v3.5

在下面三行前面加 ::
::@call :GetVSCommonToolsDir 
::@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLSDIR 
::@call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit
原文地址:https://www.cnblogs.com/zhoudingcocng/p/5798739.html