I have run this command each line in cmd and works fine. How to run this command in cmd in one line?
I have try use &
but i get different result if i run command line by line and use &
.
for /f %i in ('getmac^|find "-"') do set str=%i
set string=%str:-=%
REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /s | findstr "\<%string%\>"
Below I attach a printscreen