Create a table of contents

G

Guest

Hi,
New poster to this group. I would like to create a document, or print a
table of contents, that would delineate the contents of a folder, listing the
sub-folders, and all of the files contained therein. Is there a way to do
this with Windows, Word, or any other Microsoft product other than Front Page?

Thanks,
Gary
 
D

David Trimboli

Literalgar said:
New poster to this group. I would like to create a document, or print
a
table of contents, that would delineate the contents of a folder,
listing the
sub-folders, and all of the files contained therein. Is there a way
to do
this with Windows, Word, or any other Microsoft product other than
Front Page?

Well, a simple way to do it would be to run the following command from
Run in the Start Menu:

cmd /c dir /s "PathToFolder" >"PathToOutput\FolderListing.txt"

where PathToFolder and PathToOutput get replaced with the appropriate
paths.

For instance, if I wanted to list all the files and subfolder files in
my My Documents folder and output this to FolderListing.txt on the
desktop, I'd use:

cmd /c dir /s "%userprofile%\My Documents"
"%userprofile%\Desktop\FolderListing.txt"

or

cmd /c dir /s "C:\Documents and Settings\David\My Documents"
"C:\Documents and
Settings\David\Desktop\FolderListing.txt"

You can then open this text file in any text editor.

Look up the DIR command for additional options you can add to this
command.
 
K

Ken Blake, MVP

New poster to this group. I would like to create a document, or print a
table of contents, that would delineate the contents of a folder, listing the
sub-folders, and all of the files contained therein. Is there a way to do
this with Windows, Word, or any other Microsoft product other than Front Page?


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 command 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
 
J

John

Hi,
New poster to this group. I would like to create a document, or print a
table of contents, that would delineate the contents of a folder, listing the
sub-folders, and all of the files contained therein. Is there a way to do
this with Windows, Word, or any other Microsoft product other than Front Page?

Thanks,
Gary

I uses TreeSize Free. Google it.

John
 
P

Plato

=?Utf-8?B?TGl0ZXJhbGdhcg==?= said:
New poster to this group. I would like to create a document, or print a
table of contents, that would delineate the contents of a folder, listing the
sub-folders, and all of the files contained therein. Is there a way to do
this with Windows, Word, or any other Microsoft product other than Front Page?

http://www.bootdisk.com/utility.htm
GENERAL FILE UTILITIES
Folder Content Printers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Create Table of Contents 2
Printing Folder Contents 2
Print HD Table of Content 4
auto table of contents possible ? 7
Table of Contents 1
Table of Contents 1
Word Word Table of Contents 1
Table of Contents 1

Top