Transfer / Clone / synchronize filetime between directories

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Transfer / Clone / synchronize filetime between directories

Post by *Peter »

Situation:
I have a folder with files (oh , really surprising :roll: ) and a backup of it (a real backup or a Catalogmaker-file). Sometimes I have to change something in the files (many, many ...) and the I want to restore the file-date and -time to original values, stored in the backup.

What is the best way to do it?

a) I can make a batch-file with "set time commands", based on my files - if I do not forget to start it before I change the file.

b) I can make a batch-file with "set time commands", based on my backup-files, and edit it and check it and control it ....

c) I use a plugin which "transfers / clones / synchronizes file-time between directories: Copy file-date from source to target".
Does it exists?

I saw that Nir Sofer added new commands to his tool "Nircmd"
http://www.nirsoft.net/utils/nircmd2.html
and one of the commands is "clonefiletime":

Code: Select all

clonefiletime "c:\temp\file1.txt" "c:\files\*.txt"
clonefiletime "c:\temp\file1.txt" "c:\temp\file2.txt" 
Could this be the base of a nice, comfortable TC-tool?

Regards

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

You may use "Sychronize Dirs" function of TC for this task.

Just open your backup (real backup or the Catalogmaker-file) in one panel and the modified files in other panel.

Select "Commands - Sychronize Dirs" from main menu

After "Compare" is done:
- Mark the files to be adapted (or press Ctrl-A for all)
- use according "Copy file properties" from context menu
#5767 Personal license
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

sqa_wizard wrote:...
- use according "Copy file properties" from context menu...
Yes, that's it. Thank you.

Peter
TC 10.xx / #266191
Win 10 x64
Post Reply