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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.