findstr and extracting specific data

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
firebloodphoenix
Posts: 16
Joined: 16 Jul 2010 01:29

Re: findstr and extracting specific data

#1 Post by firebloodphoenix » 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%

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: findstr and extracting specific data

#2 Post by Squashman » 15 Jun 2012 07:05

Do you have a question?

Post Reply