This part of the question isn't vba, so not sure if the right forum, the results of the question are impacting the vba code to display what I thought is the file's creation date.
I periodically download a csv file and found code to display the creation date so that I could decide whether to get an updated csv file from the web based application. I assumed that the creation date was the one to use since there is the possibility that the existing downloaded file could be opened and edited. However, when I downloaded a new copy this morning, the file creation and modified date displays as follows: (using dos for example display purpose and not in my actual workflow process)
How can this be since the file itself contains current data and was created at 7:50 am (clicked button to generate the csv output and 1 min later file saved to hard disk)
Is it because I forgot to delete the existing file before new one was downloaded and got saved as rfis (1).csv and then I deleted the existing rfis.csv and renamed the new one so it took on the old attributes?
I periodically download a csv file and found code to display the creation date so that I could decide whether to get an updated csv file from the web based application. I assumed that the creation date was the one to use since there is the possibility that the existing downloaded file could be opened and edited. However, when I downloaded a new copy this morning, the file creation and modified date displays as follows: (using dos for example display purpose and not in my actual workflow process)
/T Controls which time field displayed or used for sorting timefield
C Creation
A Last Access
C:\Users\Downloads>dir rfis.csv /TC
Volume in drive C is OSDisk
Volume Serial Number is
Directory of C:\Users\Downloads
02/06/2019 01:37 PM 375,089 rfis.csv
C:\Users\Downloads>dir rfis.csv /TA
Volume in drive C is OSDisk
Volume Serial Number is
Directory of C:\Users\Downloads
03/04/2019 07:51 AM 375,089 rfis.csv
1 File(s) 375,089 bytes
How can this be since the file itself contains current data and was created at 7:50 am (clicked button to generate the csv output and 1 min later file saved to hard disk)
Is it because I forgot to delete the existing file before new one was downloaded and got saved as rfis (1).csv and then I deleted the existing rfis.csv and renamed the new one so it took on the old attributes?