File list copy

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
il--ya
Junior Member
Junior Member
Posts: 6
Joined: 2019-05-15, 11:04 UTC

File list copy

Post by *il--ya »

It would be nice to be able to copy a list of file names (with paths as option) from search results as a plain text.
Alternatively/additionally would be nice to be able to copy the list of file names in current panel. Then I can do "feed to listbox" and copy from there. This would also be useful for other purposes as well like get a list of files in current directory.
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Re: File list copy

Post by *obeg »

You can mark all files in a folder ( for example by * on the numeric keyboard or ctrl+a) or by a search

Then there are the following commands in the main menu Mark -> "Copy Selected Names To Clipboard" or "Copy Selected Names With Path To Clipboard"

br /ola
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: File list copy

Post by *Stefan2 »

Hi and welcome il--ya


From an search results, click [feed to listbox] to get a "normal" list view like from a folder, next select the wanted files.


To export such list:

- Right click the button bar to create a new button (Change...).
- In the button dialog click at [Help].
- Scroll down and read at "%L,...... create a list file in the TEMP directory with the names of the selected files and directories,

- Now create a button like

Code: Select all

Command    = Notepad 
Parameters = "%L"
Start path = 
Icon file  = Notepad 	      (or WCMICONS.DLL)
Tooltip    = Notepad %L
This is one possibility only.



Ready to paste button:

Code: Select all

TOTALCMD#BAR#DATA
notepad
"%L"
notepad.exe
Open notepad with selected files %L


-1


- - -

Also there are internal commands for this (see the textfile TOTALCMD.INC)

cm_SaveSelectionToFile=2031;Save file selection to file
cm_SaveSelectionToFileA=2041;Save file selection to file (ANSI)
cm_SaveSelectionToFileW=2042;Save file selection to file (Unicode)

cm_SaveDetailsToFile=2039;Save all shown columns to file
cm_SaveDetailsToFileA=2043;Save all shown columns to file (ANSI)
cm_SaveDetailsToFileW=2044;Save all shown columns to file (Unicode)


Code: Select all

Command    = cm_SaveSelectionToFileW 
Parameters = 
Start path = 
Icon file  = WCMICONS.DLL
Tooltip    = Save Selection To File W




 
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: File list copy

Post by *Gral »

You can copy files paths with names as a text directly in search results window. Just press CTRL+C.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: File list copy

Post by *petermad »

There several commands for copying the selected filenames to clipboard:
cm_CopyNamesToClip=2017;Copy filenames to clipboard
cm_CopyFullNamesToClip=2018;Copy names with full path
cm_CopyNetNamesToClip=2021;Copy names with UNC path
cm_CopyFileDetailsToClip=2036;Copy all shown columns
cm_CopyFpFileDetailsToClip=2037;Copy all columns, with full path
cm_CopyNetFileDetailsToClip=2038;Copy all columns, with UNC path
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
il--ya
Junior Member
Junior Member
Posts: 6
Joined: 2019-05-15, 11:04 UTC

Re: File list copy

Post by *il--ya »

Thank you guys for all your responses. Using TC for 18 years and didn't realize that I can copy the file list both in search results and in a panel. D'oh!
TC is awesome!
Post Reply