Add new comment

redirect to NUL or /dev/null

Yes, You can redirect stdout or stderr or both to a NUL device, on Windows:

stderr NUL

On Linux:

stderr /dev/null