Export dir/file listing as CSV file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Export dir/file listing as CSV file

Post by *CharlesF »

Does anyone know of a way to export a listing of selected dirs (inc. subdirs and files) as a .CSV file. Is there a plugin that will allow this?

Regards,
Charles
User avatar
Hainz
Junior Member
Junior Member
Posts: 51
Joined: 2009-08-07, 09:03 UTC
Location: Hagen, Germany

Post by *Hainz »

For this case I often use the old DIR-Command:
dir *.* /S /B /ON >mylist.csv
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Post by *CharlesF »

Hainz wrote:For this case I often use the old DIR-Command:
dir *.* /S /B /ON >mylist.csv
This produces a listing of ALL files and folders in the root folder. I want a listing of files and folders of the folders currently selected in TC only.

Regards,
Charles
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

1. Select some folders and/or files
2. Type "cm_DirBranchSel" (without the quotes) into TC's command line and press Enter
3. Select all files and folders (e.g. Ctrl+A)
4. Menu->Mark->Copy To Clipboard With Path+Details

A tab-separated list of files/folders (including data from all visible columns) should be stored in your clipboard.
Windows 10 Pro x64, Windows 11 Pro x64
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Post by *CharlesF »

umbra wrote:1. Select some folders and/or files
2. Type "cm_DirBranchSel" (without the quotes) into TC's command line and press Enter
3. Select all files and folders (e.g. Ctrl+A)
4. Menu->Mark->Copy To Clipboard With Path+Details

A tab-separated list of files/folders (including data from all visible columns) should be stored in your clipboard.
Interesting but not exactly what I'm looking for. I'd like the list to have relative paths only and be sorted alphabetically by path and file name (not by file name). Like so.

2011\01 Filename
2011\01 Filename
2012\01 Filename
2012\02 Filename

I suppose I can do this in a text editor.

Btw, I only get path\Filename in the clipboard list. No other columns show in the list.

Regards,
Charles
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2CharlesF
Relative paths, sorting, ... - you could do that in TC too, but I think it's really gonna be easier and faster in a reasonable text editor.

And about those missing columns, are you sure you are clicking "Copy To Clipboard With Path+Details" and not "Copy Names With Path To Clipboard"?
Windows 10 Pro x64, Windows 11 Pro x64
Post Reply