Windows file lists

Is there a way to copy the contents of a directory - just the file names - in windows. For instance, I’m creating a word document, and I want to list the contents of a directory in it.

I suppose I could open a DOS window, DIR, and cut and past… but is there a more direct way?

Unix is so much easier… ls | mylistofstuff

There is also a pipe command in DOS. You could try
dir > mylist.txt

Go to DOS.
CD\ directory you want; for instance for a directory of mydocuments:
cd\mydocuments

At the prompt type:

DIR > DIR.TXT

The listing will be in a text file DIR.TXT

Here’s a utility that does the job:
http://www.zdnet.com/pcmag/pctech/content/16/05/ut1605.001.html

Only useful, I guess, if you’re going to be doing this a lot.

Smakfu - you da man (or maybe woman)

exactly what I was looking for, thanks.

also, thanks for the other posts… I didn’t realize that there was a pipe command in dos. that’s bound to prove useful in itself.

thanks, all