Page 1 of 2
Print Folder List
Posted: 28.04.2009, 17:39
by hiphutch
Is there a way I can print out the folder structure of a full drive, including all sub directories, without it listing all the files?
I noticed I could have it create a file with all the folders in it, but it also included all the files.
Posted: 30.04.2009, 13:08
by clanman
Yes it can be done however it is a roundabout way.
1. Do a Find (Alt-F7) *.* starting at the root or where ever you want the list to start from.
2. Click Export list (RHS of Find window) and save to a txt file.
3. Use a text editor (I suggest PSPad) and cut the text in the name column and the txt from the RHS of the directories.
Like I said. A bit of a round about way but not too hard.
Re: Print Folder List
Posted: 04.07.2010, 23:57
by Piteur
Hello!
It seems it's not possible to print tree of folders, sub-folders and files ; doesn't it ?
Thanks for answering.
Best regards.
Re: Print Folder List
Posted: 07.07.2010, 10:28
by H.Seldon
You can also try the following from a batch file:
c:
cd \
dir /ad /s /b > %userprofile%\desktop\folder_tree.txt
Enter the above using a text editor (i.e. notepad).
Save it giving it a .bat, or .cmd extension (e.g. folder_tree.bat).
This should list the folder structure (including sub-folders) of the C: drive, redirecting the output to a file named folder_tree.txt on your desktop. You can, of course rename the output path to whatever you like. You can also change C: to whatever drive you like.
Re: Print Folder List
Posted: 07.07.2010, 15:03
by Piteur
H.Seldon wrote:c:
cd \
dir /ad /s /b > %userprofile%\desktop\folder_tree.txt
Thanks, but path is not found !
Re: Print Folder List
Posted: 07.07.2010, 18:13
by H.Seldon
Sorry, I didn't notice your operating system. This wasn't necessary with my Vista x64, but you will need to put the output path in double quotes:
c:
cd \
dir /ad /s /b > "%userprofile%\desktop\folder_tree.txt"
Your user profile is under 'Documents and Settings' folder in XP. IN Vista/Win7 it is 'Users' folder. It is the spaces in the path that cause the problem. Double quotes around the path takes care of it. It is good practice to use the double quotes in any case, my mistake. You can also change the path to somewhere else if use like. I only used your desktop for convenience.
Re: Print Folder List
Posted: 07.07.2010, 22:25
by Piteur
H.Seldon wrote:dir /ad /s /b > "%userprofile%\desktop\folder_tree.txt"
Thank you for your explanations. I thought the quotes, and I tried. But the problem was the same: the path was not found.
But I found why: XP is in
French, so that "desktop" is called 'bureau'! It's so stupid!
However, I see no tree of files and folders: there are only folders (probably a problem of parameters).
And the presentation is not correct: there is no tree, precisely, and accented characters are replaced by false.
Finally, a makeshift solution, at best: it would be so much better that FreeCommander offers a solution to print a tree ...

Re: Print Folder List
Posted: 08.07.2010, 00:30
by H.Seldon
Sorry, Piteur. I was answering the original poster 'hiphutch', who wanted a listing of the folder structure only (no files). If you want files too, just remove '/ad' from the command. Then it will list everything on your hard drive (and probably take a very long time).
Re: Print Folder List
Posted: 08.07.2010, 10:33
by Piteur
H.Seldon wrote:Sorry, Piteur. I was answering the original poster 'hiphutch', who wanted a listing of the folder structure only (no files). If you want files too, just remove '/ad' from the command. Then it will list everything on your hard drive (and probably take a very long time).
Many thanks.
I'm really happy for your patience.
Anyway, it is possible to start from any part of the structure, to avoid too long trees ...
Again thank you,
H.Seldon.
Regards.
Re: Print Folder List
Posted: 08.07.2010, 17:09
by H.Seldon
You're welcome, Piteur. For anyone who is interested, there is also a fantastic application called 'Everything' at voidtools.com. If you have an NTFS file system, it will index your entire computer in a few seconds, giving you a flat list of everything on your computer. There are many search/filtering options as well (see help file). The list can also be exported to a file. This program is lightning fast for locating anything on your computer.
Re: Print Folder List
Posted: 08.07.2010, 17:37
by Piteur
H.Seldon wrote:'Everything' at voidtools.com.
Great! I am excited to try this software.
Is it able to search words or sentences within file? It would be the ultimate!
Re: Print Folder List
Posted: 08.07.2010, 18:42
by joby_toss
Piteur wrote:H.Seldon wrote:'Everything' at voidtools.com.
Great! I am excited to try this software.
Is it able to search words or sentences within file? It would be the ultimate!
Only file/folder names.
Re: Print Folder List
Posted: 08.07.2010, 19:41
by Piteur
joby_toss wrote:Only file/folder names.
That's unfortunate!

Re: Print Folder List
Posted: 10.07.2010, 19:23
by Piteur
I found a command line to get a tree, written in a file :
For instance, for J:
Code: Select all
cmd /c tree J: /f /a > "%userprofile%/desktop/tree_J.txt"
So I guess it should not be very difficult to insert such a function in FreeCommander ... Is it a dream?

Re: Print Folder List
Posted: 19.07.2010, 15:35
by shumaker212
I follow a tool for printing directory contents called [url=htpp://
www.print-directory.com]Folder printer[/url]
Find Here : htpp://
www.print-directory.com