/a Attributes
The attributes that can be specified with /A
are
R | Read-only files |
H | Hidden files |
I | Not content indexed Files |
O | Offline files |
S | System files |
A | Files ready for archiving |
L | Reparse Points |
These attribute characters can be prefixed with a hyphen (-
) to reverse its meaning.
/q has no effect if file does not exist
The /q
flag only prevents verification if files can be deleted if used with wildcards.
If a file that does not exist is tried to be deleted, cmd.exe
will respond with Could Not Find inexisting-file.txt, even if used with /q
.
In order to prevent such an error message from being printed,
stderr needs to be redirected to
nul
:
C:\> del inexisting-file.txt 2>nul