0

I'm trying to do a DIR that show me all folders and sub-folders except Windows folder.

1
  • 1
    This sort of question belongs on SuperUser, not here, because it's computer-related but not programming-related.
    – Adam V
    May 12, 2016 at 21:31

2 Answers 2

3

Do a directory listing with subfolders and attribute is directory on drive C:\

dir /s /ad "C:\" | findstr /v "\Windows"
1

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"
2
  • And its possible to show the size of the files?
    – K1c09_Dev
    May 15, 2016 at 18:12
  • @K1c09_Dev - The question says that you want to see directories.
    – lit
    Apr 2, 2020 at 7:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .