Compare Directory by File Name ONLY

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

ectimo
New Member
New Member
Posts: 1
Joined: 2010-10-21, 23:06 UTC

Compare Directory by File Name ONLY

Post by *ectimo »

Is there a way to compare 2 directories, but only the file names, not the contents, sizes and the dates?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2ectimo: welcome to the forum !

Just use the "Synchronize Dirs" function and set the options:

[ ] by content
[X] ignore date
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Or just use Shift+F2 if you don't need to compare subfolders.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2sqa_wizard & 2MVV

Both of your methods will mark files with same name but different size as being different - that's apparantly not what
ectimo wants.

The only way I can think of, is to copy-and-paste the filenames of the two directories (with cm_CopyNamesToClip)
to two files, and then compare the two files with cm_IntCompareFilesByContent
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
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

try the sibling field of the misc content plugin.
http://www.ghisler.ch/board/viewtopic.php?p=136116#136116
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Lefteous wrote:try the sibling field of the misc content plugin.
http://www.ghisler.ch/board/viewtopic.php?p=136116#136116
To compare folders? Please let us know how to configure it.

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

To compare folders?

Maybe by using Branch View with it ?
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
mrbeeye
Junior Member
Junior Member
Posts: 79
Joined: 2004-05-03, 02:56 UTC

Post by *mrbeeye »

Any chance that "compare two dirs only by file names" will be implemented?
I like more "Compare by Content" window interface than cm_comparedirswithsubdirs.

I use workaround:

Code: Select all

dir /b /a:-d > left(right)_panel.txt
and then Compare by Content those two files.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

In Sync dialog there are buttons 'duplicates' and 'singles' that allow you to check if files with different names exist. So, leave only 'singles' pressed and you'll see files that exist on one side only.
mrbeeye
Junior Member
Junior Member
Posts: 79
Joined: 2004-05-03, 02:56 UTC

Post by *mrbeeye »

MVV wrote:In Sync dialog there are buttons 'duplicates' and 'singles' that allow you to check if files with different names exist. So, leave only 'singles' pressed and you'll see files that exist on one side only.
Yes I can use Synchronize Dirs but I do find two problems: window is modal and I cannot compare only filename part without extension.
kefir_sub
Junior Member
Junior Member
Posts: 7
Joined: 2009-07-10, 06:22 UTC

Post by *kefir_sub »

Hello,
It is an old thread but I still not have found a way in TC to "compare two dirs only by file names". That is especially relevant when I try to compare files with the copy in the cloud, e.g Google Drive (with cloudplugin). Same files have different time stamps and sizes.

Can that option be added to Synchronize Dirs?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

When you enable "ignore date" option, TC suggests copy directions for "singles" (files that exist on one side only) and leaves "doubles" (files that exist on both sides) w/o copy direction (it is impossible to detect by size which copy is better), so you have to select a direction for such files yourself. You can also ignore and hide "doubles" by unclicking corresponding button if you don't want to sync them (they won't be synced automatically anyway though).
Inka
Junior Member
Junior Member
Posts: 3
Joined: 2004-03-08, 08:23 UTC

Re: Compare Directory by File Name ONLY

Post by *Inka »

ectimo wrote:Is there a way to compare 2 directories, but only the file names, not the contents, sizes and the dates?
I miss this feature for years. In Sync Dialog, I get the names as expected for sync operation, but I need this as selection in one of TC's panes to do anything else.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Compare Directory by File Name ONLY

Post by *Stefan2 »

Inka wrote:..., but I need this as selection in one of TC's panes to do anything else.
Depends on your workflow.

Currently you have to use tricks, scripts (there are a few in the forum) or a tool like 'Lst2Clip'

viewtopic.php?p=15433#15433
This will copy the selected file names to clipboard and modify them:
# Copying the file extension can now be omitted.






 
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Inka,
Shift-F2 doesn't help?

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.
Post Reply