At work, I’ve been given a CD-ROM with bunch of files on it in a whole large tree of folder and sub-folders.
I would like to be able to print out a list of all of the files on the CD, prefarably listing the whole tree structure.
I’ve tried to do this in Windows Explorer (I’m using Windows XP), and it doesn’t seem to have any facility to print out a file list, much less the whole tree.
So for example, if your CD-ROM drive is f:, the command would be:
dir f: /s > c:\sample.txt
The /s switch is needed to recurse subdirectories and the path and\or filename can be anything you’d like, although I find it’s easier just to put it in the root of C:
Once the cursor reappears, close the command-prompt. You can then open the TXT file with NOtepad, Wordpad or Word.