Select files based on a list, copy the selection to other view

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
CruleD
Junior Member
Junior Member
Posts: 2
Joined: 2024-07-10, 22:04 UTC

Select files based on a list, copy the selection to other view

Post by *CruleD »

Hello everyone, I wasn't able to find a way to do something I needed so I had to create account to ask.
I will try to explain it as best as I can.


  • I have a folder with multiple subfolders and thousands of files.
  • Did the initial search for files with partial name matches (*part_name* on each line) in filelist.text and fed that into Search in: @filelist.txt.
  • The complete results are fed into listbox.
  • Both views (left and right) are the same like that (did the same search twice, once in both views).
  • Then on the left view, did another search, advanced > find duplicate files (as the results above contained same files multiple times)
  • Then numpad+ to leave at least one file in each group unselected.
  • Now on the left I have all the duplicates selected, and on the right the original list of all found files.


What I want to do now it select those duplicates from the left view, in right view, so I could remove them from view (but not delete the files).

In essence, I just want to remove the very same (same file path) files that appear multiple times. I should be able to filter it further on my own.
So I need either some way to select files based on a list, copy the selection to other view or some other way to do it.

Thanks for reading.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Select files based on a list, copy the selection to other view

Post by *petermad »

2CruleD
You can save selected files in the Search result to a list with the SAVESELECTION command and you can load a saved list (as a Search result) with the LOADLIST command

Run: hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::dlg_configbuttonbar.htm
to see the help for these commands
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
CruleD
Junior Member
Junior Member
Posts: 2
Joined: 2024-07-10, 22:04 UTC

Re: Select files based on a list, copy the selection to other view

Post by *CruleD »

Thanks, but after some googling I found an easier way to do it.
Just clicking the Mark > Save Selection to file, then Mark > Load selection from file.
After that I can invert and just show selected files.

Thanks for the help. That solves that part.
Post Reply