comparing file creation dates

James Cook JC at JamesCook.biz
Sun Feb 24 05:28:50 PST 2008


>So I'm imagining something like:
>
>Get the modification date for DB Local
>Get the modification date for DB OnServer
>Compare the modification dates.

I just wrote a procedure that lists files in a 
backup folder then deletes the oldest. FWIW to 
you, here's the part I use to acquire their 
modification dates and sort by the date modified. 
This much will give you the name of the newer 
file at the top of your list of two.

lvFiles is a local variable listing the file names in the folder: lvFolder

ArrayFilter lvFiles, 
lvFiles,¶,str(superdate(val(array(fileinfo(lvFolder,import()),3,¶)),val(array(fileinfo(lvFolder,import()),4,¶))))+¬+import()

arraysort lvFiles, lvFiles,¶



-- 
James Cook
JC at JamesCook.biz
720-252-7042

Proficiencies
http://JamesCook.biz

Founder of HindSight Ltd.
http://HSLtd.us

Custom Panorama Applications
Specializing in Panorama Enterprise for the Web


More information about the Qna mailing list