cjinsocal581
asked on
File attributes in VB.NET
I use this:
File.GetCreationTime
To see what the file creation date and time is. But I have copied this file to another directory and ran the File.GetCreationTime against it, it shows that date and time it was copied to the new folder.
I need to see the original creation date and time. In other words, when you right-click on the file and see the properties, the "Modified date" shows you the orignal date and time that file was created.
Any ideas on how to show this date and time in VB.NET?
Hope I made sense.
File.GetCreationTime
To see what the file creation date and time is. But I have copied this file to another directory and ran the File.GetCreationTime against it, it shows that date and time it was copied to the new folder.
I need to see the original creation date and time. In other words, when you right-click on the file and see the properties, the "Modified date" shows you the orignal date and time that file was created.
Any ideas on how to show this date and time in VB.NET?
Hope I made sense.
ASKER
What is weird is that if you view the properties of the copied file, it shows the orignial date in the Modified area.
That is weird - if that is constant, then perhaps you are better off using that property!
ASKER
But I do not see it as a selection in the IntelliSense
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes.
is the code I posting working for u
ASKER
chekcing, be back in a few
ok
ASKER
Worked.
When a file is copied, it is *created* again and thus has a new creation date. You cannot then access the original date (of the source file from which the copy was made) as far as I am aware.