I am writing a small app that reports the MD5 and SHA1 hashes of a file, and the specific dates of a file.. date created, date last accessed, date of last modification..
What I'm finding is that the file open dialog itself affects the last accessed date, which is something I cannot have happen in a piece of production software.
I attempted to read the last accessed date and put it in a hold variable of type tfiletime, and reupdate it back to its original date. This does not work, because by the time the fileopendialog identifies the file I need to hash and report the dates on, the date is already changed for me to read and hold it.
What I need is a way to identify a file using the fileopendialog or some alternative, but to not change the last accessed date.
What I'm finding is that the file open dialog itself affects the last accessed date, which is something I cannot have happen in a piece of production software.
I attempted to read the last accessed date and put it in a hold variable of type tfiletime, and reupdate it back to its original date. This does not work, because by the time the fileopendialog identifies the file I need to hash and report the dates on, the date is already changed for me to read and hold it.
What I need is a way to identify a file using the fileopendialog or some alternative, but to not change the last accessed date.