completely disable output of reg query

May 28, 2009 at 04:24:10
Specs: Windows Vista Ultimate x64 incl. SP1 , 2 GB
For example, when using:

reg query "HKEY_CURRENT_USER\Software\Product" /v "InstallPath"

it will output all values of that string.

If we put >nul at the end, there will be no output,
but only if that specific registry string exists.

If registry string doesn't exist, it will
still output an error, although we used >nul.

My question is: "How to hide that error output?"

P.S. Echo has been set off.


See More: completely disable output of reg query

Report •


#1
May 28, 2009 at 05:40:58
I cannot test but 2>nul. If I understand correctly!

Report •

#2
May 28, 2009 at 06:27:42
Thx Shaka, I totally forgot about handles.

Using >nul 2>&1 solved my problem.

Thx again. :)


Report •

Related Solutions


Ask Question