Normally, the path is something like C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
.
From Visual Studio, one can use $(VCInstallDir)$
to get this path.
Q: But in a batch file, how to get this path?
I know one can use environment variable %VS100COMNTOOLS%
in a batch file
to get a similar path which is C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
.
The solution should not dependent on VS's version.