I'm trying to do a DIR that show me all folders and sub-folders except Windows folder.
2 Answers
Do a directory listing with s
ubfolders and a
ttribute is d
irectory on drive C:\
dir /s /ad "C:\" | findstr /v "\Windows"
This assumes that you want to omit "C:\Windows" and all subdirectories under it.
DIR /S /B /A:D "C:\" | FINDSTR /B /V "C:\Windows"