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%
Moderator: DosItHelp
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%