Print Folder List

Discussion, questions and support.
Message
Author
hiphutch
Posts: 1
Joined: 28.04.2009, 17:37

Print Folder List

#1 Post by hiphutch » 28.04.2009, 17:39

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.

User avatar
clanman
Posts: 166
Joined: 27.03.2008, 22:37
Location: Australia

#2 Post by clanman » 30.04.2009, 13:08

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.
Regards

Clanman
Using FreeCommander XE 2022 Build 860 32-bit public on Windows 11

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#3 Post by Piteur » 04.07.2010, 23:57

Hello!
It seems it's not possible to print tree of folders, sub-folders and files ; doesn't it ?
Thanks for answering.
Best regards.
Windows XP Home SP3 (french edition)

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

Re: Print Folder List

#4 Post by H.Seldon » 07.07.2010, 10:28

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.

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#5 Post by Piteur » 07.07.2010, 15:03

H.Seldon wrote:c:
cd \
dir /ad /s /b > %userprofile%\desktop\folder_tree.txt
Thanks, but path is not found !
Windows XP Home SP3 (french edition)

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

Re: Print Folder List

#6 Post by H.Seldon » 07.07.2010, 18:13

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.

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#7 Post by Piteur » 07.07.2010, 22:25

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! :oops:
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 ... :)
Windows XP Home SP3 (french edition)

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

Re: Print Folder List

#8 Post by H.Seldon » 08.07.2010, 00:30

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).

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#9 Post by Piteur » 08.07.2010, 10:33

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.
Windows XP Home SP3 (french edition)

User avatar
H.Seldon
Posts: 122
Joined: 06.03.2008, 03:51

Re: Print Folder List

#10 Post by H.Seldon » 08.07.2010, 17:09

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.

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#11 Post by Piteur » 08.07.2010, 17:37

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!
Windows XP Home SP3 (french edition)

joby_toss
Posts: 1345
Joined: 22.07.2009, 21:19
Location: Romania
Contact:

Re: Print Folder List

#12 Post by joby_toss » 08.07.2010, 18:42

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.

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#13 Post by Piteur » 08.07.2010, 19:41

joby_toss wrote:Only file/folder names.
That's unfortunate! :cry:
Windows XP Home SP3 (french edition)

Piteur
Posts: 9
Joined: 28.11.2009, 13:44

Re: Print Folder List

#14 Post by Piteur » 10.07.2010, 19:23

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? 8)
Windows XP Home SP3 (french edition)

shumaker212
Posts: 1
Joined: 19.07.2010, 15:30

Re: Print Folder List

#15 Post by shumaker212 » 19.07.2010, 15:35

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

Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests