Printing list of file contents

N

nickel

In My Computer, I'm trying to print just the list of
filenames in a particular folder. I somehow keep printing
the entire file, not just the names. Help please.
 
R

Rick \Nutcase\ Rogers

Hi Nickel,

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

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Win9x
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone
 
P

Patrick

nickel said:
In My Computer, I'm trying to print just the list of
filenames in a particular folder. I somehow keep printing
the entire file, not just the names. Help please.

What I would do is to use a Command-Prompt or a *.bat file containing;
dir /b drive:\"path to directory"\*.* >C:\filelist.txt

the '/b' causes just the filename to show, other options are shown by
typeing 'dir /?' at a CommandPrompt

"path to directory", needs all seperate words in a name to have quotes round
them (or quotes round the whole path)

Note that thiere is a space between 'dir' and '/b', also a space between
'*.*' and '>'

And after the command (in the example above) your filelist will at
'C:\filelist.txt'
 

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