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%
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%
Code: Select all
@echo off
set num=0
:loop
set /a num = %num% + 1
echo %num%
goto loop
Code: Select all
WMIC.EXE /Node:"%userdomain%" /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName^ /Format:List