i just subscribe here.

I would want to hide the "Acces is denied." error message in case writing to a read-only file fails. Could someone tell me why the following code doesn't work as expected ? I'm using Windows 10.

```
:: This file is assumed to be read-only.
echo( >"MyReadOnlyFile.txt" 2>nul
( echo( ) >"MyReadOnlyFile.txt" 2>nul

```

In both case the "Access is denied." message is displayed, although the following "How-to: Redirection" page at SS64 says the contrary: <https://ss64.com/nt/syntax-redirection.html>

```
Redirect to NUL (hide errors)
command >filename 2> nul  Redirect output to file but suppress error
(command)>filename 2> nul  Redirect output to file but suppress CMD.exe errors

```

Thanks in advance for your help.

Lionel.