In tip 2996 » How do I prevent a command from displaying any output, including any error message,
I explained that using 1>nul 2>&1 would pipe
both Stdout and Stderr to nul, suppressing any output from the piped command.
I also pointed out that > defaults to 1>.
Using these principals, you can save a keystroke when attempting to suppress Stdout and Stderr by using >nul 2>&1 or 2>nul >nul.
0 comments
Hide comments