Compare directories with respecting of file name case

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Freodon
Junior Member
Junior Member
Posts: 12
Joined: 2018-09-29, 13:16 UTC

Compare directories with respecting of file name case

Post by *Freodon »

So I have an example.txt file on one side and EXAMPLE.txt on the other and Totalcmd doesn't see them as something different, but if the name was something else entirely like example1.txt and example2.txt it correctly detects a difference. How can I force to check name case also?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Compare directories with respecting of file name case

Post by *Horst.Epp »

Freodon wrote: 2018-10-18, 09:32 UTC So I have an example.txt file on one side and EXAMPLE.txt on the other and Totalcmd doesn't see them as something different, but if the name was something else entirely like example1.txt and example2.txt it correctly detects a difference. How can I force to check name case also?
You are on Windows and therefore there is no case sensitive file system by default.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Compare directories with respecting of file name case

Post by *Dalai »

There is no way in TC to do that, and it wouldn't even make a lot of sense because Windows is not case-sensitive.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Freodon
Junior Member
Junior Member
Posts: 12
Joined: 2018-09-29, 13:16 UTC

Re: Compare directories with respecting of file name case

Post by *Freodon »

So how is it possible for me to create different-case files that keep the case even when transferred to another Windows device?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Compare directories with respecting of file name case

Post by *Dalai »

Windows keeps the file name case, but it doesn't differentiate between them, meaning one can't create files that are only different in file name case. Example: AAA.txt and aaa.txt are the same file for Windows programs. When copying AAA.txt to another system where aaa.txt already exists, you're asked to confirm overwriting the existing file. If the file aaa.txt doesn't exist, you'll get a file AAA.txt.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Re: Compare directories with respecting of file name case

Post by *milo1012 »

Freodon wrote: 2018-10-18, 09:32 UTC So I have an example.txt file on one side and EXAMPLE.txt on the other
So your filenames differ in the case?
In that case* you could use TC's sync tools and a content plugin: NameCompare
Use the field [=namecompare.Mark as different]

But of course this will only work for this special case: having filenames differing in case in each side.



* no pun intended
TC plugins: PCREsearch and RegXtract
Post Reply