9
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.
Pretty sure this will have issues with spaces in install paths. http://stackoverflow.com/questions/22352793/reading-a-registry-value-to-a-batch-variable-handling-spaces-in-value
– Craig Ringer – 2014-03-12T23:16:53.170