Re: findstr and extracting specific data
Posted: 08 Jun 2012 00:19
Code: Select all
for /f "tokens=3* delims=: " %%a in ('reg Query "HKLM\SOFTWARE\something\something" /v "findsomething" ^| findstr /i /c:"findsomething"') do set findsomething=%%a
echo found something : %findsomething%