Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 85255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:03:38+00:00 2026-05-10T22:03:38+00:00

Given a file tree – a directory with directories in it etc, how would

  • 0

Given a file tree – a directory with directories in it etc, how would you write a script to create a diagram of the file-tree as a graphic file that I can embed in a word processor document. I prefer vector (SVG, EPS, EMF…) files. The tool must run on Windows, but preferably cross-platform. The tool may be commercial but preferably free.

Update 2012-02-20. The question was related to a documentation sub project. I had to explan where files (in particular resources and configuration files) reside. I ended up with using dos tree command. I both screen grabbed the result (for short folders) AND for longer folders I redirected to a text file, which I then edited. For example if a subfolder contained 20 similarly typed files that individually were not important to the point I was making, I left just two and replaced the rest with one … line. I then printed out the file to console again and screen grabbed it. Before screen grabbing I had to modify foreground color to black and background color to white, to look better and save ink in a document should that be printed.

It is very surprising that there is no better tool for it. If I had time, I’d write a Visio Extension or may be some command line that produces SVG. SVG being HTML5 substandard, would even allow painless inclusion into online documentation.

Update 2017-10-17. I am sorry that this question was removed as not belonging to SO. So I have re-worded it. I need a script – not a WYSIWYG tool. So any scripting language or library is ok. So it is a code – writing question, and I believe belongs to SO.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:03:38+00:00Added an answer on May 10, 2026 at 10:03 pm

    Copying and pasting from the MS-DOS tree command might also work for you. Examples:

    tree

    C:\Foobar>tree C:. ├───FooScripts ├───barconfig ├───Baz │   ├───BadBaz │   └───Drop ... 

    tree /F

    C:\Foobar>tree C:. ├───FooScripts │    foo.sh ├───barconfig │    bar.xml ├───Baz │   ├───BadBaz │   │    badbaz.xml │   └───Drop ... 

    tree /A

    C:\Foobar>tree /A C:. +---FooScripts +---barconfig +---Baz ¦   +---BadBaz ¦   \---Drop ... 

    tree /F /A

    C:\Foobar>tree /A C:. +---FooScripts ¦    foo.sh +---barconfig ¦    bar.xml +---Baz ¦   +---BadBaz ¦   ¦    badbaz.xml ¦   \---Drop ... 

    Syntax [source]

    tree [drive:][path] [/F] [/A]

    drive:\path — Drive and directory containing disk for display of directory structure, without listing files.

    /F — Include all files living in every directory.

    /A — Replace graphic characters used for linking lines with ext characters , instead of graphic characters. /a is used with code pages that do not support graphic characters and to send output to printers that do not properly interpret graphic characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Never mind guys, I found some code online from a… May 11, 2026 at 3:56 pm
  • added an answer There are a few ways to handle this. Josh Susser… May 11, 2026 at 3:56 pm
  • added an answer Libraries are never complete. But you can extend them. If… May 11, 2026 at 3:56 pm

Related Questions

Given a file tree - a directory with directories in it etc, how would
First post, so here goes. I'm writing a script that does intelligent search and
How do I adapt a search tree to handle limited regular expressions? Given a
I have a large set of log files that I want to characterize or
Is it possible to get a list of all the check-ins I've made within

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.