Preserve File Modification Date

General questions about using WildEdit

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
aimy
Posts: 53
Joined: Mon Nov 01, 2004 4:02 am

Preserve File Modification Date

Post by aimy »

Hi.

Is it possible to preserve the file modification date even after changes were made?

Really hope that the answer is yes.

But how do I achieve that?

Thank you.
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Re: Preserve File Modification Date

Post by ben_josephs »

Do you mean that you want to modify some files without changing their modification times?
Why would you want to do that?

If there is a good reason for it you might:
  • record the files' modification times (perhaps using DIR on the Windows command line);
  • modify the files;
  • change the modification times back to the saved modification times (perhaps using a version of linux touch or Powershell LastWriteTime on the Windows command line).
Post Reply