DVD Talk Forum

DVD Talk Forum (https://forum.dvdtalk.com/)
-   Tech Talk (https://forum.dvdtalk.com/tech-talk-10/)
-   -   nr of files per directory? (https://forum.dvdtalk.com/tech-talk/515875-nr-files-per-directory.html)

LolaRennt 10-30-07 08:53 PM

nr of files per directory?
 
Hi,

I need some software that tells me the number of files per directory. It should be able to do this recursively in all the subdirectories as well, and report the number of files in each subdirectory.

I'd think this should be possible with DOS, but it appears not to be that easy.

Any ideas?

joeblow69 10-31-07 12:18 PM

you mean something like "dir /s" in dos ?

LolaRennt 10-31-07 02:01 PM


Originally Posted by joeblow69
you mean something like "dir /s" in dos ?

I know dir /s will show all the files, including subdirectories, so that is a first step.

What I need is to know how many files are in the respective folders. I basically just need a report on the nr of files. I do not need to see the actual filenames or anything. So ideally, I'd get a report like this:

Rootdir: 23
--> subdir1: 10
--> subdir2: 8
----->subsubdir1: 5
----->subsubdir2: 3
--> subdir3: 5

Thanks!

joeblow69 10-31-07 02:52 PM

Well you could do something like this:

dir /s | findstr /c:"Directory of" /c:"File"

The parsing would get a little screwed up if you have a file or dir with the string "File" in it, though.

LolaRennt 10-31-07 03:13 PM


Originally Posted by joeblow69
Well you could do something like this:

dir /s | findstr /c:"Directory of" /c:"File"

The parsing would get a little screwed up if you have a file or dir with the string "File" in it, though.

Hmm. This is not bad! I redirected the output to a log.txt file, and now I can go through that one to see which directories contain tons of files. Thanks!

Still, if there were some GUI program that would do this, that would be better.

Thanks!


All times are GMT -5. The time now is 02:33 PM.


Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.