How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not test.t

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
PiotrMPPL
Junior Member
Junior Member
Posts: 44
Joined: 2018-10-26, 07:04 UTC

How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not test.t

Post by *PiotrMPPL »

Hi

How to replace an existing file with a file with a different character case?

ex TEST.txt -> test.txt = TEST.txt (not test.txt)


Please help
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *petermad »

You must either delete test.txt before you copy TEST.txt or you must rename the file afterwards.

It is Window that keeps the case when overwriting a file with the same file nmae but in another case
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *Dalai »

When dealing with such short names, also be aware of Options > Display > Show old 8.3 filenames lowercase (like Explorer).
#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
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *petermad »

Show old 8.3 filenames lowercase (like Explorer).
It wil only be a problem if all the letters are uppercase:
TEST.TXT will be shown as Test.txt
TEST.txt will be shown as TEST.txt
test.TXT will be shown as test.TXT
tEst.txt will be shown as tEst.txt
testtesttest.txt will be shown as testtesttest.txt (more than 8 chars in name)
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *Fla$her »

Command: %ComSpec% /q/c move/y C:\folder\TEST.txt D:\folder\test.txt
Command: %ComSpec% /q/c copy/y C:\folder\TEST.txt D:\folder\test.txt
Command: %ComSpec% /q/c ren D:\folder\test.txt TEST.txt
Overquoting is evil! 👎
User avatar
Wojtek
Junior Member
Junior Member
Posts: 65
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *Wojtek »

Just to make sure: You want to rename the files, right?

Let's say:
TEST.txt > test.txt
ABC.pdf > abc.pdf
XYZ.doc > xyz.doc

Then use the Multi-Rename Tool and in the "Upper/lowercase" section set "All lowercase" and you're done
No need to delete the files or anything. Just rename them.

Image: https://i.postimg.cc/XJJ5YcwL/image-2024-02-11-182311253.png
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K

Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U

TC 11.02 32-bit #347308
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: How to replace an existing file with a file with a different character case? TEST.txt -> test.txt = TEST.txt (not te

Post by *Fla$her »

Wojtek wrote: 2024-02-11, 17:24 UTC Just to make sure: You want to rename the files, right?
No. He wrote clearly about replacing one file with another with the same name, but with a different character case.
Overquoting is evil! 👎
Post Reply