1.

Solve : List files on drive?????

Answer»

OK This is probably a really easy question for most of you and what makes it worse is that I KNOW that I used to know the answer. Age is a nasty business. messes with the memory cells. :-?

I want a simple command to list the names and whereabouts of all files on my C: drive.

Also is it possible to list only particular file types ie doc, pdf, etc?

Muchos gracias in advance

fizsch

I use the tree command to see what is in the C: drive.Thanks for the quick responce.

I FEEL that I should have made myself clearer. I need to be able to extract the list in some kind of TEXT format so that I can edit it in excel or database.

I have a huge collection of ebooks and articles which I have neglected to catalogue and it's GETTING so big that to do it manually would take weeks, and then I'd probably miss quite a few.

I seem to recall something along the lines of "c:\dir *.*?dirlist.txt" but I've tried this and it didn't work. I've probably got for the lack of corrrect spacings.

Any thoughts?

Cheers

fizschdir /b/s *.doc >docfiles.txt
dir /b/s *.xls >exelfiles.txt
dir /b/s *.pdf >pdffiles.txt

Writes it from all subfolders of your drive in the *.txt file.

hope this helps
uli



Discussion

No Comment Found