1.6.2 Unable to write file last modified date/time [Windows 10]

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
Sprintdriver
Posts: 68
Joined: Mon Feb 02, 2009 11:46 pm

1.6.2 Unable to write file last modified date/time [Windows 10]

Post by Sprintdriver »

I did use version 1.6.1 very shortly, so I don't know if this issue was introduced in 1.6.2 or in older versions too.

Problem description:
Cannot alter timestamp in exixting files and file save as clear file time stamp (when existing file is opened). The metadata --> change time stamp doesn't work at all on file modified date.

This doesn't work:
  • Save file as. Time stamp always get current time instead of modified time of opened image file. Settings --> General --> File operatins --> Keep original date/time | File saving - not respected.
  • Metadata --> change time stamp. This has no effect on the webp-file I try to change time stamp to.
this works
File convert works as it should, the output files have file modified date matching input files.

Also weird
After those unsuccessfully attempts to alter file date of two webp files (saved by Xnview MP after some basic editing) - I tried to use a tool called bulkfilechanger, and it turned out that there was some permission-issues (unfortunately I don't recall the exact error message by now) that blocked the tool from altering the time stamp.
But this is weird, so I wonder if XnView MP has issues with locking files after saving.

Afterthaught
I read another post mention issue with video files, and I do know that the failed attempts on change timestamp on webp files was done in a folder that also included a video file. Need to test this tomorrow on a folder that does not have video files within.
Sprintdriver
Posts: 68
Joined: Mon Feb 02, 2009 11:46 pm

Re: 1.6.2 Unable to write file last modified date/time [windws 10]

Post by Sprintdriver »

Update

Yesterday I started the same computer, and I wasn't able to repeat the behaviour :?

I tested both the same folder (where video files also was located) as well as other folders. In all the tests, I could get XnView MP to set file date stamps without any issue.

I don't know about this, maybe some weird windows stuff going on, or maybe there was a problem to the shared network folder.
GracyScott
Posts: 1
Joined: Fri Mar 07, 2025 10:13 am

Re: 1.6.2 Unable to write file last modified date/time [Windows 10]

Post by GracyScott »

You know, Windows usually updates the "Modified" date whenever you save a file, which can be a bit annoying if you just made a small change and wanted to keep the original date. Unfortunately, there's no built-in Windows setting to directly prevent this from happening with regular edits.
However, there are a couple of workarounds you could try if you really need to keep that original date:

One way is to make a copy of the file, edit the copy, and then delete the original. The copy will have the new modified date, but your original will remain untouched. It's not ideal if you're constantly making small tweaks, but it works in a pinch.

Another approach, if you're comfortable with it, is to use the Command Prompt with the copy command. If you use the /B switch (for binary copy) and add +,, after the source filename, it can sometimes preserve the original modified date. For example, if your file is named "my_document.txt", you'd type something like copy /b my_document.txt+,, my_document.txt and press Enter. Be super careful with this command though, as it overwrites the original file! Make a backup first, just in case.

If you are getting frustration after trying these solutions, you can follow for more details instruction below.
https://thegeekpage.com/how-to-edit-fil ... ows-10-11/
Post Reply