ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

generate a text report of all the subfolders and files of a directory

<< < (2/4) > >>

x16wda:
Just curious, is "tree /f" at a command prompt not sufficient?

kalos:
Just curious, is "tree /f" at a command prompt not sufficient?
-x16wda (May 21, 2012, 03:12 PM)
--- End quote ---

I want to know more about this, but I get this error:


--- ---'tree' is not recognized as an internal or external command,
operable program or batch file.

any hint?

x16wda:
Hmm, I know it was in XP, and I tried it on my Win 7 64-bit box before I posted.  Maybe it's in the support tools package, or resource kit?  (No, I just checked both of those.)

The program draws a very plain tree of folders (and optionally filenames) to standard output, which you can redirect to a file.  If you add the /a switch it uses normal ASCII characters for the tree part, like this:

+---.idlerc
+---7ff2f154e9b0e698b1391e81c8b4cd58
+---88dfc9e137283755534b27faa983ae76
+---Identities
|   +---{3C5BEFD7-288D-4C10-A534-8FEB19793A1A}
|   \---{A67B7115-600B-448C-AA0F-7E6FFF1A467E}
+---nb-75-files
|       itg-nb75-backup_exit_notify.cmd
|       itg-nb75-nbmail.cmd
|       itg-old-backup_exit_notify.cmd
|       itg-old-nbmail.cmd
|       nb75-original-backup_exit_notify.cmd
|       nb75-original-nbmail.cmd
|
+---Program Files
|   \---Common Files
|       \---Microsoft Shared
|           \---DW
|               |   DW20.EXE
|               |   DWDCW20.DLL
|               |   DWTRIG20.EXE
|               |
|               +---1025
|               |       DWINTL20.DLL
|               |
|               +---1028
|               |       DWINTL20.DLL

x16wda:
Tree.com should be in the windows\system32 folder of your system drive.  Can you try doing the command this way?  Navigate to a folder, then type in:

   %windir%\system32\tree.com /f

kalos:
interesting, but there seem to be many versatile solutions

fyi, googling "print directory" returns many solutions for this

finding the correct search terms is the key to success! :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version