Making list of files in folder

  • Thread starter Thread starter Jim S
  • Start date Start date
J

Jim S

Second time I wanted to do this. I need to make a list of the files in a
folder. I did it the hard way last time by taking screen shots and saving
them. Is there a better way to create a list?
 
Use the DIR command at a Command Prompt and redirect the output to a
..txt file. Example:

dir >C:\test.txt

will redirect the output to the file test.txt at C:\ You can get
different sort order if you want, do DIR /? for help and available
switches.

John
 
db.·.. > said:

And make this simple on you the next time around. Edit the registry
and then Export that entry and save it for the next reload. With the
exported .reg file and the batch file together.

As a matter of fact, export the registry entry BEFORE you edit it, then
you'll have a turn on and a turn off set files to load/reload.

I've made one similar to this and a dozen other registry patches that I
keep in a folder for reloads.
 
Several methods to accomplish this.......I like Tushar's best if importing to
Excel.

To add a "Print Directory" feature to Explorer, go to
this KB Article.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;q272623&

Or you can download Printfolder 1.2 from.....

http://no-nonsense-software.com/freeware/

I use PF 1.2 and find it to be more than adequate with custom
features.

OR Go to Command prompt and chdir to the folder with the files
Type DIR >MYFILES.TXT

All the above create a *.TXT file which can be opened in Notepad and printed.

One more method if you want to by-pass the *.TXT file and pull
directly to Excel is to use Tushar Mehta's Excel Add-in. This allows filtering
and sorting once you have the data in Excel.

http://www.tushar-mehta.com/ scroll down to Add-ins>Directory
Listing.

Download the ZIP file and un-zip to your Office\Library folder.


Gord Dibben MS Excel MVP
 
Second time I wanted to do this. I need to make a list of the files in a
folder. I did it the hard way last time by taking screen shots and saving
them. Is there a better way to create a list?


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it
in any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
Jim said:
Second time I wanted to do this. I need to make a list of the files in a
folder. I did it the hard way last time by taking screen shots and saving
them. Is there a better way to create a list?


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
 
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

Have a look at DirToText, freeware:

http://www.xmlssoftware.com/dtt_001.asp

Enjoy, Fred
 
Second time I wanted to do this. I need to make a list of the files in a
folder. I did it the hard way last time by taking screen shots and saving
them. Is there a better way to create a list?


Here's what I do:

c:\dir >file.txt
 
Doug,
I'll second that, Iv'e been a fan of karenware for years. Add karens
Replicator another great Free utility and you can handle the chores. I miss
seeing her monthly newsletters.
--
Peter Jam
Network System Administrator
Lorch Microwave Inc
 

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

Back
Top