How To
Getting the files and folders. Follow these steps:
This makes it so list.txt is saved into that destination automatically. You can choose any file name you would like.
The Letters
These are what the letters mean behind dir. From the example above: F: \>dir /s /b /o:gn >list.txt
- /S Displays files in specified directory and all subdirectories. The long path.
- /B Uses bare format (no heading information or summary). Just the file name?
- /O List by files in sorted order.
Then in
:gn
- g sorts by folders and then files
- n puts those files in alphabetical order
Other Letters and Options
This makes a tree of the files. I have not yet tried.