Say, I have two files:
1) C:\Dir1\aFile.txt
2) C:\Dir2\AFile.txt
If I copy aFile.txt to C:\Dir2\, then, after overwriting, file name in Dir2 remains "AFile.txt". Also I tested it in Windows Explorer - the same thing happens. This is really confusing.
-Incorrect result file name after copying
Moderators: Hacker, petermad, Stefan2, white
... for example here: http://www.ghisler.ch/board/viewtopic.php?t=38981
Then use LinuxSektor wrote:I see. But the result is confusing - this way, it's impossible to say whether file is overwritten.

Or a batch/script like this:
1) REN C:\Dir2\AFile.txt >>> C:\Dir2\AFile-temp.txt
2) COPY C:\Dir1\aFile.txt >> C:\Dir2\aFile.txt
wait a second....
3) IF EXISTS C:\Dir2\aFile.txt >>> DEL C:\Dir2\AFile-temp.txt
Another way would be to take a look at the timestamp or size to see if the file was overwritten.
.
Looking at size and date/time might give you a cluethis way, it's impossible to say whether file is overwritten.

This is standard Windows behaviour - try it with Windows Explorer - same result.
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
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