Well, you can use the static GetLastAccessTime, GetLastWriteTime and
GetCreationTime methods to determine what the last time the file was
accessed, written to, or when it was created. You can then compare those
times to the time in question and see if it is past 24 hours (by subtracting
one of the times returned from those methods from the time in question, and
then seeing if the resulting TimeSpan is greater than 24 hours.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<ti*****@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Is there a simple way using the File class to see is a file is older
than 24 hours?