I want to list an entire drive's (Z:) directories, subdirectories, and files in a single text file with all the dates and the file sizes. I can then open the file inside Excel.
I am currently using the following command:
dir z:\ /s /o:gne >text.txt
Is there any way that I can get an output similar to what you usually get with the tree command, with all the files and subdirectories stacked in one and not listed separately?
What do I have to do or to input if I wanted to remove other unnecessary information like the time?