Forum Home
Press F1
 
Thread ID: 40655 2003-12-14 03:27:00 saving list of folder contents freqwinci (930) Press F1
Post ID Timestamp Content User
200297 2003-12-14 03:27:00 Hi, how do I save a list of the filenames of the files contained in a particular folder? (eg., say I have a folder containing a bunch of mp3s - how do I save their filenames to a text file?) freqwinci (930)
200298 2003-12-14 04:45:00 This is what I do:

winkey +r (to get Run command box)
cmd
tree /f>>music.txt

where "tree" is the path to the folder you wish to print out.


You could also check out this thread (pressf1.pcworld.co.nz) for more alternatives.
Susan B (19)
200299 2003-12-14 05:16:00 I usually open a command prompt and navigate to the directory or folder I want a listing for. Having done that I type in DIR > contents.txt

Then open Windows and go to the Folder you were at. There will be a file called contents.txt which can be viewed in Notepad or Wordpad.

Tested using WinXP pro.
Elephant (599)
1