Export list of files and folders to .TXT - ('CD Tree')

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
NOH4
Junior Member
Junior Member
Posts: 11
Joined: 2009-10-25, 13:05 UTC

Export list of files and folders to .TXT - ('CD Tree')

Post by *NOH4 »

For back-up purposes I'm looking for a sort of extended CD Tree functionality.

I need the files in the folders to be included. Is there something like this?
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Maybe yo could use the "Files" -> "Print" -> "File list with subdirs..." function. Then you could print to for example "Microsoft XPS Document Writer" which saves to an *.xps file from which you could then copy the list.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9399
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

How about using

Code: Select all

tree /F
on a CMD? This command might even be included in some button of TC's button bar.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
NOH4
Junior Member
Junior Member
Posts: 11
Joined: 2009-10-25, 13:05 UTC

Post by *NOH4 »

tree /f is awesome...if I only could save it somehow :(
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

DOS: Redirect output to a file by utilizing '>' sign

Post by *Stefan2 »

NOH4 wrote:tree /f is awesome...if I only could save it somehow :(
Redirect the output to a file by utilizing the ">" sign:


tree /f /a   > "_TREE-Output.txt"

tree /f /a > "C:\Temp\_TREE-Output.txt"



As TC buttonbar button (copy code and paste to free space on buttonbar)

Code: Select all

TOTALCMD#BAR#DATA
cmd /c
Tree /F /A > "__TreeOutput.txt" && Notepad "__TreeOutput.txt"
%Commander_Path%\WCMICONS.DLL
_TREE-Output

1
-1




More info: https://technet.microsoft.com/en-us/library/bb490982.aspx


How to save and display DOS command's output from a text file using command redirection operator
https://www.youtube.com/watch?v=twUl8Dp2ygQ



 
NOH4
Junior Member
Junior Member
Posts: 11
Joined: 2009-10-25, 13:05 UTC

Post by *NOH4 »

Neat! Thanks!
Post Reply