There does not seem to be a VC++ function capable of setting actime or atime in the FAT. That's one of the values returned by the stat() function. There is file creation time, modified time and last accessed time. (At least there doesn't appear to be a function that will set the 'a' time in version 5, which is what I'm using.)
I have investigated both utime() and futime(). According to the VC++ documentation, futime() sets both modtime and actime. That's not true. Both functions do properly set modtime. They may also change the value of actime. But in both cases, the second 32-bit unsigned integer passed (for actime) is ignored. The value of actime is set to the current day. But HH:MM:SS are invariably set to 00:00:00. That is not helpful. I want to be able to set all the bits in that field.
Does anyone have some C code that will set the file last accessed time to any desired 32-bit value? This is for FAT32 in Windows 98.
Sorry, but you are not allowed to view signatures , please Register or Login