removing stderr from windows command

batch-file, stderr, windows

Solution

On Windows, you accomplish this via the `nul` device.

`2>nul`

Problem

`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!

Original source