• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to create a list of folders, but without files

I need to make a list of directories (only) of my hdd, even without files in them. TotalCommander can do it only for a specified number of folders and subfolders. The last folder (files), I don't need. Can do it another utility or os command?
Thanks for any advice
Peter
 
I need to make a list of directories (only) of my hdd, even without files in them. TotalCommander can do it only for a specified number of folders and subfolders. The last folder (files), I don't need. Can do it another utility or os command?
Thanks for any advice
Peter

Open up the windows command line, cd to the root directory you want, and type: dir /a:d > DirectoryNames.txt

That will do it.

*fixed.
 
Last edited:
Try this: dir /a:d > dir.txt

or this dir /o:g >dir.txt

The first should do folders only, the second should do everything, but sort the folders first.
 
Back
Top