I wrote in the feedback to ask for "dir /S /M0" option to to show only one footer at the end.
I started experimenting with "dir /Sn" and I am not sure if it works as it should (WAD? BUG?).
On my C: drive I created a test directory, I moved into it so now it is my current working directory, and from there I created a directory tree with "md /S a\b\c".
Now, if I type "dir /S0" it is the same as "dir /S". It shows everything. Instead, I believe that it should stop at the current directory, so in my opinion "dir /S0" should be like a simple "dir".
Second, if I type "dir /S1" it shows
Volume in drive C is unlabeled Serial number is 4717:4a93
Directory of C:\test\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> a
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> b
0 bytes in 0 files and 3 dirs
Total for: C:\test\*
0 bytes in 0 files and 6 dirs 0 bytes allocated
7.411.499.008 bytes free
So, it shows the content of current directory, of 1st level directory a, but it does not show the total for directory a, only the total for current.
If I type dir /S2 it shows the content of current directory, the content of a, the content of b, the total for a, the total for current, but not the total for b.
And so on.
Instead, if I type "dir /S+1" it shows headers and footers in the right way (I did not check if it counts in the correct way).
Volume in drive C is unlabeled Serial number is 4717:4a93
Directory of C:\test\a\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> b
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\b\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> c
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\b\c\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
0 bytes in 0 files and 2 dirs
Total for: C:\test\a\b\c\*
0 bytes in 0 files and 2 dirs 0 bytes allocated
Total for: C:\test\a\b\*
0 bytes in 0 files and 5 dirs 0 bytes allocated
Total for: C:\test\a\*
0 bytes in 0 files and 8 dirs 0 bytes allocated
7.411.499.008 bytes free
Also, "dir /S+0" work as I expect.
So, it seems to me that "dir /S+n" works, "dir /Sn" has some issues.
Can You check this?
Thank You very much again and regards
Rodolfo Giovanninetti
I started experimenting with "dir /Sn" and I am not sure if it works as it should (WAD? BUG?).
On my C: drive I created a test directory, I moved into it so now it is my current working directory, and from there I created a directory tree with "md /S a\b\c".
Now, if I type "dir /S0" it is the same as "dir /S". It shows everything. Instead, I believe that it should stop at the current directory, so in my opinion "dir /S0" should be like a simple "dir".
Second, if I type "dir /S1" it shows
Volume in drive C is unlabeled Serial number is 4717:4a93
Directory of C:\test\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> a
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> b
0 bytes in 0 files and 3 dirs
Total for: C:\test\*
0 bytes in 0 files and 6 dirs 0 bytes allocated
7.411.499.008 bytes free
So, it shows the content of current directory, of 1st level directory a, but it does not show the total for directory a, only the total for current.
If I type dir /S2 it shows the content of current directory, the content of a, the content of b, the total for a, the total for current, but not the total for b.
And so on.
Instead, if I type "dir /S+1" it shows headers and footers in the right way (I did not check if it counts in the correct way).
Volume in drive C is unlabeled Serial number is 4717:4a93
Directory of C:\test\a\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> b
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\b\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
21/12/2011 10:22 <DIR> c
0 bytes in 0 files and 3 dirs
Directory of C:\test\a\b\c\*
21/12/2011 10:22 <DIR> .
21/12/2011 10:22 <DIR> ..
0 bytes in 0 files and 2 dirs
Total for: C:\test\a\b\c\*
0 bytes in 0 files and 2 dirs 0 bytes allocated
Total for: C:\test\a\b\*
0 bytes in 0 files and 5 dirs 0 bytes allocated
Total for: C:\test\a\*
0 bytes in 0 files and 8 dirs 0 bytes allocated
7.411.499.008 bytes free
Also, "dir /S+0" work as I expect.
So, it seems to me that "dir /S+n" works, "dir /Sn" has some issues.
Can You check this?
Thank You very much again and regards
Rodolfo Giovanninetti