Am I on the right track?
Would this give me age of folder in days ?
DayDiff&& = (cdq.q - ftq.q) / %one_ft_day
I could easily create a file and use the time for that and skip the SystemTime stuff, but I'm really trying to not use shortcuts.. so to speak
Code:
%one_ft_second = 10000000 %one_ft_minute = 60 * %one_ft_second %one_ft_hour = 60 * %one_ft_minute %one_ft_day = 24 * %one_ft_hour Union ftunion q As Quad ft As filetime End Union Dim FData As DIRDATA Local ftq As ftUnion Local cdq As ftUnion Local sLocTime As SystemTime Dim DayDiff&& D$ = Dir$("C:\TEMP\") GetSystemTime sLocTime ' Place Current SystemTime to sLocTime struct? SystemTimeToFileTime sLocTime, cdq.ft ' Take SystemTime convert to Filetime place in cdq.ft ftq.q = FData.LastWriteTime
DayDiff&& = (cdq.q - ftq.q) / %one_ft_day
I could easily create a file and use the time for that and skip the SystemTime stuff, but I'm really trying to not use shortcuts.. so to speak

Comment