Hi, I am taking the output of a dir command being done as shown below rem *********************************************** rem * Estabalish the available manifest file names rem * Extract the first four characters of file name rem *********************************************** cd D:\Adsoft\SIMS\Mani...
Hi again, thanks for your response it set me onto the path of understanding what was needed to get out the actual SQL Server Named Instance values from the HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL registry key. @echo off SetLocal EnableDelayedExpansion if exist %~dp0Active_Ins...
Thanks for response, the result of your code gives me this, there is a blank line at the top of the text file then the three lines of text. <blank line> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL MIS REG_SZ MSSQL.1 SIMS2008 REG_SZ MSSQL10.SIMS2008 What I am trying ...
I am trying to use the DOS Batch script GetRgValues to recover all the vaules from a specific registry key that holds the SQL Server Instances on my server but without success. I am not an expert on the registry and would like some help please with what is needed to be entered for the variable %~2 i...