CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Directory Date ?? And comparing dates
Look in the MS Help Win32 Reference for information on the FILETIME
structure. Under the remarks section is information on how to compare
dates. You can use GetSystemTime to find out the current date and then
after conversion to a FILETIME struct, you can subtract 2.04*10^13 which
is the number of 100 ns intervals that occur during a 60 day period (approx).
If the filetime of the directory is less than this value then you will
know to delete it.
Daniel Hallmark
On Thu, 28 May 1998, Rene Groothuis wrote:
> I'm using Builder C++ 3.0. I want to check in a directory all the date
> of all the directories. And if a directory is older than 2 month I want
> to delete the directory.
W Komornicki's Home Page |
Main Index |
Thread Index