Printing only the NAMES of files in a folder

  • Thread starter Thread starter Honest John
  • Start date Start date
H

Honest John

For example, I have a folder with 5 files in it, and I want to print the
NAMES of these five files but not the CONTENTS of each individual file. How
do I do that please? Thanks.
 
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

On Sat, 16 Feb 2008 17:29:00 -0800, Honest John <Honest
 
Honest said:
For example, I have a folder with 5 files in it, and I want to
print the NAMES of these five files but not the CONTENTS of each
individual file. How do I do that please? Thanks.

Gord said:
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.

For the "DIR" method, I think the OP would want:

dir /b > "%USERPROFILE%\Desktop\filename.txt"

The /b is bare format and the "%USERPROFILE%\Desktop\" part puts
"filename.txt" on their desktop for easy locating.
 
Thanks for the added info Shenan

Will save for later use if needed.


Gord
 
Gord, you are "The Man"! I'm sure one of those procedures will work for me.
Thank you, thank you!!!!
John

Gord Dibben said:
Thanks for the added info Shenan

Will save for later use if needed.


Gord
 
Outstanding help, Shenan! Between you and Gord, I know I'll find a process
that works for me. Many, many thanks to you!!!! John
 
Honest John said:
Outstanding help, Shenan! Between you and Gord, I know I'll find a process
that works for me. Many, many thanks to you!!!! John

One more option: google "Karen's Power Tools" and look for "Directory
Printer" when you get there.

Simple and easy to use
 
Honest said:
For example, I have a folder with 5 files in it, and I want to print the
NAMES of these five files but not the CONTENTS of each individual file. How
do I do that please? Thanks.


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
 
OR Go to Command prompt and chdir to the folder with the files
Type DIR >MYFILES.TXT

Please explain what chdir is. Thanks. I need to print the names of files
within folders, some of them have hundreds of names. Thanks. Dan
 
thank YOU, Uncle Grumpy. So simple!!!

Uncle Grumpy said:
One more option: google "Karen's Power Tools" and look for "Directory
Printer" when you get there.

Simple and easy to use
 
Please explain what chdir is.  Thanks.  I need to print the names of files
within folders, some of them have hundreds of names.  Thanks.  Dan


I think chdir is cd

you can open up a command prompt,
in xp, start..run..cmd<ENTER>

browse to whatever directory
cd \blah\bleh\bling
C:\blah\bleh\bling>dir /s/b

and you get a list.

the cd command moves from one directory to another. google it.

dir /s/b >file

will redirect the output to a file in the directory you are in, so you
don't see reams of results scrolling off your screen.

directory=folder. (directory is what they used to call it, and most
techies still do)
 

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