Printing list of file contents

  • Thread starter Thread starter nickel
  • Start date Start date
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.
 
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
 
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'
 
Back
Top