06-11-2014 04:51 AM
I wanted to share my experiences with Windows 7 and the writing of different types of file.
I was writing a LabVIEW application for generating a HTMP report, consisting of a HTML file individial PNG files for each chart. Whenever I run my report generator I noticed that the HTML file date would change but the PNG file date would remain the same.
I decided to delete the individual PNG files and then re-run my report generator. The new PNG files were written (with the same names), but they again appeared with the old date/times.
It appears that Windows 7 has a special feature where it remembers a files information, and if you delete then re-create a file within 15 seconds it retrieves the old time/date information!
Even more confusing, the "Date" field in Explorer seems to choose what date to show, either the creation date or the modification date, depending on file type.
If you run the following LabVIEW routine the file creation dates stay the same, the file modification dates increase, but the date show in the date field shows differently between the INI and the TXT file.
06-11-2014 11:04 AM
I've not directly tried your code, but have noticed that Windows 7 sometimes seems to "remember" the old data file when you delete and re-create it. Have you tried the F5 "Refresh" option? Does this show you the "new" file?
BS
06-11-2014 11:33 AM
I have just run my code again and these are the results shown in the Windows 7 explorer:
The settings.ini and settings.txt files are showing the first creation date, even though they have been deleted numerous times. The "Date" field is quite weird as it shows different dates for the two files.