neubert
neubert

Reputation: 16832

removing stderr from windows command

2>&1 will take stderr and output it to stdout.

2>filename.txt will take stderr and dump it in filename.txt

How do I just remove it all together? Like maybe to some sort of /dev/null equiv?

Thanks!

Upvotes: 3

Views: 1001

Answers (1)

Unsigned
Unsigned

Reputation: 9936

On Windows, you accomplish this via the nul device.

2>nul

Upvotes: 4

Related Questions