• 0

directory structure program


Question

Hey,

I am looking for a program that exports a directory structure into a txt file or something... here is an example of what i mean by a directory structure:

cake
-cake2
--12.02.09
mother
-wedding
funny
-cartoons
-dilbert
-CtrlAltDelete

Does anyone know of a program that can do this?

Link to comment
https://www.neowin.net/forum/topic/730556-directory-structure-program/
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello,

Have you considered using the Tree command (filename: TREE.EXE) from a Command Prompt? It is available under all versions of Microsoft Windows and MS-DOS as far back as at least MS-DOS 3.30, I think. The syntax is:

TREE
[target path]
{
/F
} {
/A
}
>
[name of file to create]

The /A and /F commands are optional. They specify using ASCII text instead of Line Drawing Characters from the IBM Extended Graphics Set to show the lines between the objects and whether to display Files in addition to directory names.

As an example, if I had a CD-ROM in my D:\ drive and wanted to save a directory structure listing to C:\TEMP\MY-CD.TXT with ASCII lines I would use the following syntax:

TREE D:\ /A > C:\TEMP\MY-CD.TXT

I would suggest always using the /A option since there few text editors or word processing programs that really take advantage of Line Drawing Characters (SemWare does offer one, though).

Regards,

Aryeh Goretsky

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.