Apologies if this is the wrong forum for the type of request.
I am attempting to export a registry string (REGEDIT /e or REG QUERY .logfile) to a text file and would like to specify the result as a SET variable. The problem is that the output text file has several lines of text rather than the required string (as such I can not select SET = field3 for example).
Is there any command I can use to output only the specified string? If not, is there a quick way I can select a registry string and SET as a variable for use within a batch file?
Thanks
I am attempting to export a registry string (REGEDIT /e or REG QUERY .logfile) to a text file and would like to specify the result as a SET variable. The problem is that the output text file has several lines of text rather than the required string (as such I can not select SET = field3 for example).
Is there any command I can use to output only the specified string? If not, is there a quick way I can select a registry string and SET as a variable for use within a batch file?
Thanks