I am new to Total Commander.
Is TCable to do the following:
I have 2 folders, which contains files. I want to compare these to eachothers, but only on filenames. So, no comparison on filename extension, date/time, size, contents, etc.
Pretty simple scenario... Is TC able to do that? If so, how?
Thanks,
Comparison of folder contents, only file names.
Moderators: Hacker, petermad, Stefan2, white
Re: Comparison of folder contents, only file names.
Content is ignored by default and you can unselect "by date"
but you can't ignore the extension
I guess its hard to find a compare tool which ignores the extension.
but you can't ignore the extension
I guess its hard to find a compare tool which ignores the extension.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Re: Comparison of folder contents, only file names.
2mgroen
What if there are more than one file with the same name in one or both of the folders - which file should be compared to which?
TC can search for (and compare) files with the same size (disregarding the name) - "Find Files" (alt+F7) -> "Advanced" tab -> "Find duplicate files".
If you after doing a search for duplicate files click the button "Feed to listbox", then you can afterwards press Num+ (+ on numeric keyboard) and a new dialog pops up: "Select duplicate files". Here you can refine the search/comparison. (This is a well hidden feature of TC).
What if there are more than one file with the same name in one or both of the folders - which file should be compared to which?
TC can search for (and compare) files with the same size (disregarding the name) - "Find Files" (alt+F7) -> "Advanced" tab -> "Find duplicate files".
If you after doing a search for duplicate files click the button "Feed to listbox", then you can afterwards press Num+ (+ on numeric keyboard) and a new dialog pops up: "Select duplicate files". Here you can refine the search/comparison. (This is a well hidden feature of TC).
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Comparison of folder contents, only file names.
Thats an interesting thought. Haven't thought about it yet. But a list presenting that the file in the "source" panel is existing in the "destination" panel would be fine. Excluding extensions of course. If 2 or more files are in either the source of destination folder (or both), that could be marked with an indicator as well (in the list). So, comparison should only be done between the source and destination folder (not in one folder itself), in my specific situation that is. But this could be implemented with settings to so that files with same name /diff extensions in one folder are marked as well.petermad wrote: 2020-03-03, 20:08 UTC 2mgroen
What if there are more than one file with the same name in one or both of the folders - which file should be compared to which?
Re: Comparison of folder contents, only file names.
2mgroen
Maybe this can be usefull to you, even though it does not disregard file extensions:
Put these commands in your usercmd.ini file:
Then you can make these buttons:
The em_select_duplicates and em_show_duplicates commands can also be assigned to Keyboard shortcuts.
You need both commands in usercmd.ini in order to use the em_show_duplicates command.
You can remove the two cm_SelectAllFolders commands from the em_show_duplicates command, if you dont mind that the folders are hidden in the result lists.
Maybe this can be usefull to you, even though it does not disregard file extensions:
Put these commands in your usercmd.ini file:
Code: Select all
[em_select_duplicates]
cmd=cm_SelectAllBoth,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClipm_LoadSelectionFromClip
[em_show_duplicates]
cmd=em_select_duplicates,cm_SelectAllFolders,cm_ShowOnlySelected,cm_ClearAll,cm_FocusTrg,cm_SelectAllFolders,cm_ShowOnlySelected,cm_ClearAll,cm_FocusTrg
Code: Select all
TOTALCMD#BAR#DATA
em_select_duplicates
wcmicons.dll,70
Mark files that exist in both panels
Code: Select all
TOTALCMD#BAR#DATA
em_show_duplicates
wcmicons.dll,73
Show only files that exist in both panels
NOTE! - When using the em_show_duplicates command the content of the file panels will be reset if TC's main window get out on focus and back into focus.To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
The em_select_duplicates and em_show_duplicates commands can also be assigned to Keyboard shortcuts.
You need both commands in usercmd.ini in order to use the em_show_duplicates command.
You can remove the two cm_SelectAllFolders commands from the em_show_duplicates command, if you dont mind that the folders are hidden in the result lists.
Last edited by petermad on 2020-03-20, 16:49 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Comparison of folder contents, only file names.
I have edited the em_select_duplicates command here above, to not cause errors if no files are found.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar