View Single Post
  #3 (permalink)  
Old 07-05-2009, 10:30 AM
Lem
Newsgroup Contributor
 
Posts: n/a
Re: Copying file names to a document

Richard Z wrote:
> I want to make a list of all my files in a folder. Ideally I'd like to
> have a program be able to read the files within a folder so I don't have
> to open up folder after folder but maybe I'm getting ahead of myself
> here. I can right click a file, Rename, Copy and Paste that into a
> document and it will show up perfectly. The problem is I can't seem to
> do that with more than 1 file at a time. I just want the name of the
> file on a list.


There are a few utility programs available that do this (Karen's
Directory Printer (http://www.karenware.com/powertools/ptdirprn.asp) is
probably the most often cited), but a quick and dirty method is to open
a Command Prompt window and type

dir > dirlist.txt

You can use various switches to control what gets listed. For example,
dir /b /on prints only the names and sorts by name

type dir /? for complete syntax

--
Lem -- MS-MVP

Apollo 11 - 40 years ago this month:
http://www.nasa.gov/mission_pages/ap...0th/index.html
Reply With Quote

 
Old 07-05-2009, 10:30 AM