My Documents

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

How do you create a table of contents in a word document that reflects a my
documents folder with all it's subordinate folders and files listed?
 
How do you create a table of contents in a word document that reflects a my
documents folder with all it's subordinate folders and files listed?



Roger, this newsgroup is for help with Windows Vista. Someone may be
able to help you with a Word question here, but if you don't get the
answer you need, you would likely do much better asking again in a
Word newsgroup; that's where the Word experts hang out.
 
The only way I know is to go into command. Get to your documents folder.
Type Dir /s > MyJunk.txt. This will create a text file with everything
in it and a lot more. Get out of command. Find MyJunk.txt. Open it with
word and there you go... with a lot of cleaning up and editing to do.
This is a very old DOS way.

I think that's what you meant. Like a table of contents of your
documents folder.

John
 
I think he wants a document that shows the file and folder structure of
his documents folder. Word can't do that I don't think.

John
 
Hi, John.

Another way to do that is described in this KB article:
How to add the Print Directory feature for folders in Windows XP
http://support.microsoft.com/?kbid=321379

This worked beautifully in WinXP but I haven't tried it yet in Vista.

RC
--
R. C. White, CPA
San Marcos, TX
(e-mail address removed)
Microsoft Windows MVP
(Running Windows Live Mail 2008 in Vista Ultimate x64)
 
I think he wants a document that shows the file and folder structure of
his documents folder. Word can't do that I don't think.


Rereading his question, I think you're probably right that that's what
he wants. I misunderstood.

Here's my standard reply on how to print folder contents (originally
written for XP, but should work in Vista too). Number 1 specifies
notepad, but he could do it in Word, if he prefers that.

Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it
in any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
It's about the same but in a bat file. The example they give prints the
entire directory. He wanted only his documents file. The "/-p /o:gn"
tells it to sort a certain way and not pause the screen... something
like that.

You can get fancy by doing dir /? and finding all the cool stuff you can
do.

I tried the xp one in vista and it worked but, again, it prints the
entire directory.

John
 
Back
Top