The append option >> could create duplicates if always used from the highest folder as opposed to only working on new folders. But this may be getting to arcane.
I do use a similar method for "indexing" my dvd disks
dir f: /s/b >> dvd.txt (where f: is my dvd drive)
|