Copy Folder - Folder Date NOT to change

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
rs3d
Posts: 14
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times

Copy Folder - Folder Date NOT to change

Post by rs3d » Thu 09 Dec, 2010 03:06

Is there a option that when a folder is copied, the copied version
has the same date as the original? With FARs defaults the folder
gets the current system date...

ExampeDir (1.1.2001) -> COPY: ExampleDir (8.12.2010)

I couldn't find the option in case there is one. Thanks a lot!

Игорь Юдинцев
Posts: 725
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев » Thu 09 Dec, 2010 07:47

A possible workaround: copy it as usual, then run the macro for Far 2.0 (Far 1.7x) (with this .REG file imported to the registry, it is invoked by pressing CtrlAltQ).
The macro copies the timestamps of all files from active to passive panel.

rs3d
Posts: 14
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by rs3d » Thu 09 Dec, 2010 20:40

Thank you for the idea but it doesn't work for Folders under Win7 64bit :(

Игорь Юдинцев
Posts: 725
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев » Thu 09 Dec, 2010 23:29

The macro uses keyboard shortcuts to access timestamp fields in file attributes change dialog.
These shortcuts have been changed in recent Far 2.0 builds, so the macro needs to be updated:
Attachments
CtrlAltQ.zip
(529 Bytes) Downloaded 161 times

rs3d
Posts: 14
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by rs3d » Fri 10 Dec, 2010 10:27

Thanks Igor! This Script works now, but not for nested directories.

Please consider adding a "Original Time Stamp" option in the Copy Dialog for FAR,
this would be excellent.

Thanks, Rob

rs3d
Posts: 14
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by rs3d » Mon 13 Dec, 2010 19:32

Dear Igor,

could you please change the macro to change directory only if it's newer
than the original. Otherwise I would destroy the original time stamp if
I'm not looking correctly...

Thank you, Rob

Игорь Юдинцев
Posts: 725
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев » Mon 13 Dec, 2010 21:18

Attachments
CtrlAltQ.zip
(728 Bytes) Downloaded 175 times

rs3d
Posts: 14
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times

Copy Folder - Folder Date NOT to change

Post by rs3d » Tue 04 Jul, 2017 09:30

Just wanted to bring up that topic again... even though Macros are a solution, it would be great if there would be the possibility to copy the original folder date stamp with the Copy Options...

Post Reply

Return to “Support and Troubleshooting”