I have the problem that my batch is on a network drive and not all people have write permission to this path. Normally the batch logs also some information.

I would like to suppress the `permission denied` info in case of no write permission. My assumption is that I have to redirect the standard error to `nul`.

But this example is not working. I will get a `permission denied`. It's OK if the log is not created, but I don't want to see a `permission denied` error message. This error message should be redirected to `stderr`.

```
echo test 1> c:\Windows\log.txt 2> nul

```