Search code examples
windowscmdcommanddir

(Windows) Find files that do NOT have a specific attribute


I know that I can use the following to get a list of all files that have the archive attribute: 'dir /b /a:a'

However, I cannot seem to get a list of files that do not have this attribute.


Solution

  • dir /b /a:-a
    

    inhelp (dir /?) it is stated (- reverses)