How do you get all your files listed into a text file?

LakerGod

Platinum Member
May 19, 2001
2,477
0
0
My hard drive is making some weird noises. I have no time to backup all my mp3s and videos, so I was wondering if i could use a utility or command to list all of the file names into a text file. Any ideas?
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
dir /s > filelist.txt

Type that at the dos prompt, at the whatever directory you want to create the list for. It'll create a text file called filelist.txt in the same directory. Get rid of the /s if you don't want it to list all the files in the subdirectories. You can also add in wildcards like *.mp3 or *.avi to list only mp3/avi files, just add in it before the >.

I hope all of that made sense, it's 7:45am and I'm sleepy.
 

Anubis

No Lifer
Aug 31, 2001
78,712
427
126
tbqhwy.com
you can also load all you MP3s into winamp (2.8) and theres a button that will generate a HTNL list of all the songs in the List. its in missalinaus options i think. i do beleive that that all have to have ID3 tags so thet dont come up as unknown

might work with mpegs and avi's if you play them in winamp also
 

bmacd

Lifer
Jan 15, 2001
10,869
1
0
Originally posted by: LakerGod
Thanks for all your help!

did you get it ok? There are plenty of other command line switches you could have used instead of "/s". If you wanted to only grab the names of movies or mp3s, you could have done something like dir *.mp3 /s >filelist.txt, assuming you wanted to search all subdirectories.

-=bmacd=-
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
Tree /f >test.fil

That'll list all the files with the appropriate directory tree structure.

Good Luck

Scott
 

KeyserSoze

Diamond Member
Oct 11, 2000
6,048
1
81
I DEFINITELY reccomend this little program to everyone for directory printing. SURE, you could do it the easy way as stated above :D, but here's some freeware that was posted here a while ago, that I use. Small program written in VB, prints out or saves it to disk, a listing of all files in a directory (and subdirectory if you choose). With all file details (depending on what you choose.)

It's open, so you can modify/change it if you want.

KarenWare Directory Printer


EDIT: (Grammar)


KeyserSoze