I have this sentences in my batch file:
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{147BCE03-C0F1-4C9F-8157-6A89B6D2D973}" /v DisplayVersion | findstr /C:"7.7.0" >nul 2>&1
Why I still having the error priniting on screen?
How to fix it?
redirect output
Moderator: DosItHelp
Re: redirect output
The error is coming from before the pipe:
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{147BCE03-C0F1-4C9F-8157-6A89B6D2D973}" /v DisplayVersion 2>&1 | findstr /C:"7.7.0" >nul
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{147BCE03-C0F1-4C9F-8157-6A89B6D2D973}" /v DisplayVersion 2>&1 | findstr /C:"7.7.0" >nul