Results 1 to 7 of 7
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Print Subdirectory Tree

    I am looking for a DOS utility that can print a graphical tree picture of my subdirectory structure using the long file names under Windows 98. DOS used to have a TREE.COM (or was it .EXE) that could do this but it seems to have been lost over the years.

    Ronny
    Ronny Richardson

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print Subdirectory Tree

    TREE still exists, even in 2000/XP. Are you sure it's not there? Try running C:WINDOWSCOMMANDTREE >tree.txt and see if you get any output; it could be that your system is not pathed out correctly, or the file somehow wound up missing. You could also press F3 and search the hard drive for TREE* to see if it's there.
    -Mark

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Re: Print Subdirectory Tree

    Must not have been installed. I went to the root directory and did a

    DIR TREE*.* /S

    and it did not show up. I'll check a couple of other machines and see if I find it on them but we have a fairly standard installation here at work so I doubt it. I'll also check at home. I run ME there but if I have it, I'll bet it would work.

    Ronny
    Ronny Richardson

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Brantford, Ontario, Canada
    Posts
    2,391
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print Subdirectory Tree

    Try using the /a switch aswell, if you're browsing through a command line. That way, you'll see any hidden files you may have. Your original command line instruction may have missed the tree.com file because of it.
    Christopher Baldrey

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Print Subdirectory Tree

    Ronny:

    By default, in Win98SE, TREE is installed in WINDOWSCOMMAND, so you wouldn't find it in the root directory... have you tried just executing the command?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  6. #6
    2 Star Lounger
    Join Date
    May 2002
    Location
    Midland, Michigan, USA
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print Subdirectory Tree

    Chuck,
    The /S switch tells the DIR command to look in the specified directlry and all subdirectories, so the windowscommand directory would be checked from the root directory.

    Per the command DIR /?:
    <hr><pre>Displays a list of files and subdirectories in a directory.

    DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
    [/O[[:]sortorder]] [/S] [/b] [/L] [/V] [/4]

    [drive:][path][filename]
    Specifies drive, directory, and/or files to list.
    (Could be enhanced file specification or multiple filespecs.)
    /P Pauses after each screenful of information.
    /W Uses wide list format.
    /A Displays files with specified attributes.
    attributes D Directories R Read-only files
    H Hidden files A Files ready for archiving
    S System files - Prefix meaning not
    /O List by files in sorted order.
    sortorder N By name (alphabetic) S By size (smallest first)
    E By extension (alphabetic) D By date & time (earliest first)
    G Group directories first - Prefix to reverse order
    A By Last Access Date (earliest first)
    <span style="background-color: #FFFF00; color: #000000; font-weight: bold">/S Displays files in specified directory and all subdirectories.</span hi>
    /B Uses bare format (no heading information or summary).
    /L Uses lowercase.
    /V Verbose mode.
    /4 Displays year with 4 digits (ignored if /V also given).

    Switches may be preset in the DIRCMD environment variable. Override
    preset switches by prefixing any switch with - (hyphen)--for example, /-W.</pre>

    <hr>

  7. #7
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Atlanta
    Posts
    568
    Thanks
    7
    Thanked 1 Time in 1 Post

    Re: Print Subdirectory Tree

    I have checked a handful of Win 98 and Win ME machines and none of them had TREE installed. I don't know if it's available on the CD and not installed in a regular installation or just not included any more. That's a shame. I did not use it often but it was a real help when I did use it. Anyway, one of the shareware programs suggested in another post on finding duplicate files also does a tree so I'm set. Thanks everyone.

    Ronny
    Ronny Richardson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •