Page 1 of 1

Re: findstr and extracting specific data

Posted: 08 Jun 2012 00:19
by firebloodphoenix

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%

Re: findstr and extracting specific data

Posted: 15 Jun 2012 07:05
by Squashman
Do you have a question?