TC Help wrote:You can now select related files. For example, you would want to select all RAW image files (.cr2), but only if there is a jpg file in the same directory. This can be done with the following selection string:
*.jpg>*.cr2
So, if I understand correctly, this should select all .cr2 files for which there is a .jpg.
I have a dir with:
a.cr2
a.jpg
b.cr2
c.jpg
Expected result: selects all .cr2 images for which there are related .jpg files: a.cr2
Actual result: selects all .cr2 images for which there are related .jpg filesand additionally selects all .jpg files: a.cr2 a.jpg
c.jpg
Either the help file text should be adjusted or the functionality.
(I understand I can perform a Num-, *.jpg, Enter afterwards to get my desired result.)
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Confirmed!
And if one writes *cr2>*jpg then only the corresponding files are selected, but, again, both are selected, not only the desired one. I don't think this is what was intended.
It's misunderstanding. Related files are groups of files with the same name and different extensions. In your case raw files *.cr2 are parents and *.jpg files (created from raw files) are their children. You can select families with more children at once, for example *.dbf files with related *.cdx and *.fpt files:
Well, the example from TC help is reversed - it shows how to select children *.jpg > and their parents *.cr2 (if exist). Unrelated *.cr2 and other files stay unselected.
Of course, you are right - the description is unclear. IMHO it will be easy understood only when using terms for family relations (parent, child, family, orphan, etc.).
Usher,
I'd suggest using a short example since the files do not really have to be in any relationship to each other apart from sharing a part of their name.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
There should be both - feature description and some examples - with explanation which file will be selected in any case. Examples should show only INTENDED use (as seen above - parent raw and children jpeg files), showing other uses isn't helpful.
However, if you use terms for family relations, other users will be aware that there are many directly unrelated people with the same family name - and they will easy understand how to extend intended use…
2Hacker
I agree that the Help is deceiving. It should also be mentioned that en entry like: *.jpg>*.cr2 *.raw will select both .cr2 and .raw files when a .jpg file with the same name exists
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
As Hacker pointed out, there are TWO possibilities, either changing the description or changing the functionality. I personly think that a function to select files that have related files would be very useful. The example of the picture files shows this very clearly. If e.g. you want to delete the raw files that have already been converted to another format, you execute the command and then simply delete the selected files. As it presently is, you must execute another command, before you can delete the unwanted files.
Sure, just like *.jpg>*.cr2 does it - I just wanted to point out that you can actually select more than one related file type, but the help does not inform about that.
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
Neat feature! Would be nice if could be inversed, like selecting all CR2 files that have NOT a JPG parent.
And yes, I can accomplish it by negating the selection afterwards and then deselect JPG files, but I think of something like using the vertikal bar when searching.
and even cooler it would be, if it can be done between panels: only select jpgs on the left if there's cr2 with same name on the right. Like advanced Shift+F2.
I actually ended up writing autohotkey script for that a while ago (still in use).