Search found 5 matches

by bob_carswell
10 Nov 2010 03:43
Forum: DOS Batch Forum
Topic: Dir output into a file in one row with comma seperation
Replies: 2
Views: 4745

Re: Dir output into a file in one row with comma seperation

Hi amel27

Many thanks for your code it does the job really well, appreciate your help. :D
by bob_carswell
09 Nov 2010 10:42
Forum: DOS Batch Forum
Topic: Dir output into a file in one row with comma seperation
Replies: 2
Views: 4745

Dir output into a file in one row with comma seperation

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...
by bob_carswell
19 Oct 2010 05:32
Forum: DOS Batch Forum
Topic: Reg Query - return all values from a registry key
Replies: 4
Views: 53125

Re: Reg Query - return all values from a registry key

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...
by bob_carswell
18 Oct 2010 01:48
Forum: DOS Batch Forum
Topic: Reg Query - return all values from a registry key
Replies: 4
Views: 53125

Re: Reg Query - return all values from a registry key

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 ...
by bob_carswell
15 Oct 2010 02:21
Forum: DOS Batch Forum
Topic: Reg Query - return all values from a registry key
Replies: 4
Views: 53125

Reg Query - return all values from a registry key

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...