- list all files of (only) the current directory
or
- list the full directory tree where each sub directory having its own section.
What I need is a dir command where all files of a directory tree are listed integrated in ONE section and the corresponding subdirectory level is shown by indention with 2 blanks per hierarchy level.
To give an example: a directory tree of 3 directories with 2 files in each should be listed with a special adjusted "dir" command as follows:
Code: Select all
subdir <dir>
subsubdir <dir>
25.02.2016 23:18 345.434 file111.txt
24.03.2016 21:08 456.477 file112.txt
15.11.2015 02:28 677.658.011 file11.txt
25.02.2016 23:18 234.552.435 file12.txt
28.04.2016 12:28 412 file1.txt
31.03.2016 19:44 665.654.411 file2.txt
6 File(s) 1.578.667.180 bytes
Mind that subfolders come first and that the sum at the bottom is the sum of ALL files.
How can I achieve this with a DOS script which enhances the "normal" built-in "dir" command?
Peter