List of all files on a drive

J

John Gregory

Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.
 
D

Dave Cohen

John said:
Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.

Yes, from a command prompt type dir /? for all switches. You will at
least want dir /s. Redirect the output as:
dir /s >file_1_r.txt (or any other name of your choice).
You can play with the switch settings and view on monitor prior to saving.
Dave Cohen
 
B

Bruce Chambers

John said:
Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.


From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as one used to do in DOS. Any of the switches for the DIR command
(type "dir /?") will work with this command, if you wish to modify the
output. You can then subsequently edit the resulting text file using
NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379

Directory Lister
http://www.krksoft.com/index.php


--

Bruce Chambers

Help us help you:


http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
T

Tim Slattery

John Gregory said:
Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.

Open a command prompt, navigate to the top level of the drive you want
to see, and type

dir /s

That will get you a list of all files on the disk. To route the list
to a file use:

dir /s > myfile.txt

For complete details on the dir command, type

dir /?
 
J

John Gregory

That works, thank you very much for the response

Dave Cohen said:
Yes, from a command prompt type dir /? for all switches. You will at
least want dir /s. Redirect the output as:
dir /s >file_1_r.txt (or any other name of your choice).
You can play with the switch settings and view on monitor prior to saving.
Dave Cohen
 
P

Pegasus \(MVP\)

John Gregory said:
Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.

Further to the various other replies you received: This variant
might give you the file names in a more easily digestible format:

dir c:\*.* /s /b > c:\dir.txt
 
A

Anthony Buckland

John Gregory said:
Is there a simple way to export a listing of all files on a drive that
includes path information?

Example:
C:\My Documents\Temp\Test_Directory_1\file_1_r.txt

Any format will do - txt, Excel, csv, etc.

Some methods are being offered, but I thought I'd just ask what
one would do with this information. For example, I have over
140,000 files and over 9,000 directories. Would I be trying to
create a reference work of beyond-Biblical proportions in which
to search for the occasional file? Baffled minds might want
to know.
 
R

rod

"Anthony Buckland"
Some methods are being offered, but I thought I'd just ask what
one would do with this information. For example, I have over
140,000 files and over 9,000 directories. Would I be trying to
create a reference work of beyond-Biblical proportions in which
to search for the occasional file? Baffled minds might want
to know.

I don't think so,
I have 300,000 images in around 2000 directories,

I use two free utilities
"disk cataloguer" for the file list
and "agent ransack" to find any image of choice.
just takes seconds.
 
J

John Gregory

I have received some great replies - thank you all!

To answer the last question:

The reason I need the file list is that I intend to create a batch file to
rename about 80,000 MP3 files. I have put the list into excel, and using
some formulas I have been able to generate the file name structure I want to
use.

The file are all currently in a directory with the artists name, and
sometimes the album name, with a variety of file name configurations.

So far, exporting the list into Excel, and sorting it, I have used formulas
to extract the information and create the target rename file.

I know it is a mess, but it is years of random CD ripping and it seems the
various music programs I have used all had a very different method of file
naming.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top