CODE: [Copy to clipboard]@echo off for /f "delims=(; tokens=1-2*" %%a in ('findstr /i "Software\\" 1.txt') do set str=(%%b ; echo %str%