Accessing the Registry from the Command Line
In my recent "Utilities you didn't know you had" podcast, I realize now I totally forgot about REG.EXE.
I was reminded while browsing James Manning's blog
From CMD.EXE, this tells you where VS.NET 2005 is installed:
C:\>reg query HKLM\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\VS /v EnvironmentDirectory
Here's the same thing in MSH (gp is the alias for get-property):
MSH C:\>$(gp HKLM:\Software\Microsoft\VisualStudio\8.0\Setup\VS).EnvironmentDirectory
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.



About Newsletter
Comments are closed.