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


"Richard Z" <reply.to.group@here.thanks> wrote in message
news:uR3l$FZ$JHA.2824@TK2MSFTNGP03.phx.gbl...
> 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.


You can Google search for file name list programs but you can also use the
dir command for creating a text file with the full path name.

Since I am not on a XP machine I am not sure if one of the DIR switches
below works with XP but it does with Vista. You can type DIR /? and see if
the /b switch is there. If it is it will work on XP. If not leave the
switch off. A little text cleaning would then be needed for a strictly file
name with path list.

Click Start, Run and type CMD then press enter.
Type cd \ and press enter to get back to the root of the system drive (C:\)
Type DIR /s /b >c:\filenames.txt

The DIR command runs a directory listing. The /s switch starts it and runs
through all subdirectories. The /b switch strips off all headers and only
gives the filename and full path. There may be some path names too long for
the DIR command (usually within your system file area such as Live mail
recovery file folder. Otherwise I think this may work for you.

It may create a really large file size so it may not open in some word
editors.



Reply With Quote

 
Old 07-05-2009, 11:10 AM