For example, how to find out the installation path of SQL Server?
I used the following statement, but there are other information besides the path. Is there any other method to directly find out the path?
-----------------------------------------------------------------------------------------------------------------
FOR /F "delims=" %%i IN ('@reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup" /v
SQLPath') DO @SET mypath=%%i
-----------------------------------------------------------------------------------------------------------------
[ Last edited by augvii on 2008-9-28 at 11:41 ]
I used the following statement, but there are other information besides the path. Is there any other method to directly find out the path?
-----------------------------------------------------------------------------------------------------------------
FOR /F "delims=" %%i IN ('@reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup" /v
SQLPath') DO @SET mypath=%%i
-----------------------------------------------------------------------------------------------------------------
[ Last edited by augvii on 2008-9-28 at 11:41 ]

