Windows Vista copy/paste listing of filenames to a word document

  • Thread starter Thread starter Paul Kraemer
  • Start date Start date
P

Paul Kraemer

Guest
Hi,

I am using Windows Vista. I have a folder with twenty files in it. I would
like to create a MS Word document that contains a listing of the filenames in
this folder. Can anyone tell me if there is a way I can copy and paste all
twenty filenames into my word document at once? I just want the filenames -
I don't want links to the files or any content within the files. So far, the
quickest way I have figured out to do this is to copy and paste one filename
at a time.

Thanks in advance,
Paul

--
Paul Kraemer
 
Re: copy/paste listing of filenames to a word document

You can do it from the command line, creating a list file to copy to the
clipboard, or insert into the document.
Rightclick one of the files, and Properties. Copy the 'Location' to the
clipboard.
Open a Command Prompt, and type"
"dir" [SPACE] " /b" [SPACE] [no quotes - and then paste location (press
Alt-space, press e, press p)]
continue typing:
[SPACE] " >" [SPACE] " list.txt" [ no quotes- and hit [ENTER] ]
This is a creating a file named 'list.txt" in your user ID folder. Once you
have this listing, Word has some very powerful data handling tools for using
it. Macro language, tables, merging, and others that can access the file to
insert it into your documents.
--
Was this helpful? Then click the Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm#RateAPostAsAnswer
Mark L. Ferguson
..

"Paul Kraemer" <PaulKraemer@discussions.microsoft.com> wrote in message
news:A9FC32AE-D9F1-4E94-A93C-1B4D10072165@microsoft.com...
> Hi,
>
> I am using Windows Vista. I have a folder with twenty files in it. I
> would
> like to create a MS Word document that contains a listing of the filenames
> in
> this folder. Can anyone tell me if there is a way I can copy and paste
> all
> twenty filenames into my word document at once? I just want the
> filenames -
> I don't want links to the files or any content within the files. So far,
> the
> quickest way I have figured out to do this is to copy and paste one
> filename
> at a time.
>
> Thanks in advance,
> Paul
>
> --
> Paul Kraemer
 
Re: copy/paste listing of filenames to a word document

Go to a command prompt

change directory to where the files reside

type dir> filename.doc

this will create a word document called filename


"Paul Kraemer" <PaulKraemer@discussions.microsoft.com> wrote in message
news:A9FC32AE-D9F1-4E94-A93C-1B4D10072165@microsoft.com...
> Hi,
>
> I am using Windows Vista. I have a folder with twenty files in it. I
> would
> like to create a MS Word document that contains a listing of the filenames
> in
> this folder. Can anyone tell me if there is a way I can copy and paste
> all
> twenty filenames into my word document at once? I just want the
> filenames -
> I don't want links to the files or any content within the files. So far,
> the
> quickest way I have figured out to do this is to copy and paste one
> filename
> at a time.
>
> Thanks in advance,
> Paul
>
> --
> Paul Kraemer
 
Back
Top