Welcome to MSDN Blogs Sign in | Join | Help

Where is Visual Studio 2005 installed?

C:\>reg query HKLM\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\VS /v EnvironmentDirectory

 

! REG.EXE VERSION 3.0

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\VS

    EnvironmentDirectory  REG_SZ  C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\

It's unfortunately not simple (although certainly still doable) to get that path parsed out to "cd" to it with cmd.exe as-is (note that we had to invoke a separate exe in the above).  However, if you're using Monad, you can just get-property with the registry provider, already built-in to Monad.

MSH C:\> $(gp HKLM:\Software\Microsoft\VisualStudio\8.0\Setup\VS).EnvironmentDirectory

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\

MSH C:\> cd $($(gp HKLM:\Software\Microsoft\VisualStudio\8.0\Setup\VS).EnvironmentDirectory)

MSH C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>

 

Published Friday, March 03, 2006 4:49 PM by jmanning

Comments

# VSTS Links - 03/06/2006

Monday, March 06, 2006 8:51 AM by Team System News
Eric Charran talks about using settings in Test Projects.

Buck Hodges shows us how to change the computer...

# Accessing the Registry from the Command Line

Wednesday, April 12, 2006 4:53 PM by ComputerZen.com - Scott Hanselman
Anonymous comments are disabled
 
Page view tracker