how to hide Win7 registry key not found error

February 17, 2011 at 17:15:45
Specs: Windows 7
Hi,
I ran
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%" >NUL 2>&1

in a bat file on Window 7. When the key/value doesn't exist, it gives
ERROR: The system was unable to find the specified registry key or value.

How can I hide the above error. I tried XXX.bat > test.txt and it still dispalys the error on cmd. any suggestion on how to hide the error??? this only happens in Window 7, xp does't give the key not found error.

Thanks....


See More: how to hide Win7 registry key not found error

Report •

#1
April 12, 2011 at 23:15:24
my problem is, how to know if the product key is already used or not yet in used, because there so many os that i bougth is the key is already in used or block to the microsoft, how to prevent it?

Report •
Related Solutions


Ask Question