i want to get either 0 or 1 from the following reg query: reg query "hklm\Software\Microsoft\Windows\Currentversion\WindowsUpdate\Auto Update\Rebootrequired"
Instead of getting the Updates or the Error Message, i want to output the Errorcode.
The Problem is, that the whole command must be put in one Line!
Something like "reg query.... 2>&1 | echo %Errorlevel%
Thanks!
Sorry for my bad English!