keep original creation and modified times and dates?

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: keep original creation and modified times and dates?

Post by *Gral »

Did you restart TC?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: keep original creation and modified times and dates?

Post by *petermad »

2Indko
Indko wrote:While copying an older folder with subfolders I still have in the copy the current date and time.
It is only if the folder in the taget side does not already exist, that the folder date is copied. If the folder already exists. the date will not be changed.

Also notice that even if the folder date is copied, on NTFS formatted drives, Windows will change the date of the folder if new files are added to, or removed from the folder.
Last edited by petermad on 2023-07-18, 20:58 UTC, edited 1 time in total.
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
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: keep original creation and modified times and dates?

Post by *hi5 »

Did you close and restart TC?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Indko
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-17, 20:34 UTC

Re: keep original creation and modified times and dates?

Post by *Indko »

PROPLEM SOVED.

I tried it again in the wincmd.ini - writing CopyAllTimes=1 and CopyDirTimeStamp=1 and change it simular in the preferences unter copy/deleate.
Now it works perfect. All copied folders and subfolders are keeping the date and time of creation.
First time I made somewhere a mistake.
I have to thank you all very much 1000 times for your answers and the help.
User avatar
nicolai78
Junior Member
Junior Member
Posts: 7
Joined: 2023-04-01, 20:38 UTC
Location: Denmark

Re: keep original creation and modified times and dates?

Post by *nicolai78 »

Can anyone make this work? I would really like to have the source date/time copied (overwriting) the target.

I have tried in many different way to make it work, but it's like TC just ignores all date/time of directories, when you copy directories.

This is both tested on local drives and network drives. The same thing happens. The target directories are not having their date/time updated from the source.

Image: https://imgur.com/a/uwC10Ao
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: keep original creation and modified times and dates?

Post by *ghisler(Author) »

Did you check the right option to copy directory timestamps?
Configuration - Options - Copy/Delete - Copy date/time of directories
Author of Total Commander
https://www.ghisler.com
User avatar
nicolai78
Junior Member
Junior Member
Posts: 7
Joined: 2023-04-01, 20:38 UTC
Location: Denmark

Re: keep original creation and modified times and dates?

Post by *nicolai78 »

Yes. I just checked.

Image: https://imgur.com/MSqHqea

And I just tried again.

Image: https://imgur.com/0zWyGKK

I expect the date/time from source to be copied from left to right, but it's not happening.

Am I expecting too much? Am I misunderstanding how this work?

Thank you for taking the time to explain and/or fix :)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: keep original creation and modified times and dates?

Post by *petermad »

2nicolai78
I would really like to have the source date/time copied (overwriting) the target.
Am I expecting too much? Am I misunderstanding how this work?
I think you are expecting too much - If you delete the "Test source" on the right side of you example (the "Test source" inside the "Test target dir") and then copy "Test source" from left to right - you will see that the newly created dir on the right side will have the same date as "Test source" on the left side - as you want.

But if you the change the date of "Test source" in the left side and then copy it to the right side again, then the "Test source" on the right side does not get it's date updated to the date of the left side - that is by design.

The "Copy date/time" option ONLY has effect for directories copied if the same directory does not already exist in the target.

Also be aware that on NTFS partitions (most common for drive C: on newer computers) the date of a directory is updated by the system if files are added or removed from the directory - There is nothing TC can do about that.
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
User avatar
nicolai78
Junior Member
Junior Member
Posts: 7
Joined: 2023-04-01, 20:38 UTC
Location: Denmark

Re: keep original creation and modified times and dates?

Post by *nicolai78 »

Also be aware that on NTFS partitions (most common for drive C: on newer computers) the date of a directory is updated by the system if files are added or removed from the directory - There is nothing TC can do about that.
This is perfectly fine, and as expected. This is default for many file systems I'm sure.
The "Copy date/time" option ONLY has effect for directories copied if the same directory does not already exist in the target.
I get that this is how TC is "working" right now, but I think we miss an extra option, if the default cannot be changed. At least it makes my life somewhat harder, since I have to enter a lot of directories to see if files have been updated. I would love to see date/time updated on directories like it is updated on files.

If have have a file inside any directory, and it already exists on the target, but with an older date/time, the date/time is updated on the file.

I "just" want the same to happen for directories.

Does this make sense?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: keep original creation and modified times and dates?

Post by *petermad »

Does this make sense?
Yes, you can make a post about your wish in TC suggestions (English)

I would love to see date/time updated on directories like it is updated on files.
What about subdirectories to the folder you are copying, should they also have their date changed?
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
User avatar
nicolai78
Junior Member
Junior Member
Posts: 7
Joined: 2023-04-01, 20:38 UTC
Location: Denmark

Re: keep original creation and modified times and dates?

Post by *nicolai78 »

Thank you, thank you, thank you :!:

Version 11.50 fixes this issue, and I love it! :D
Post Reply