FileSystemInfo.LastModifiedDate?

Oct 13 2005 2:21 PM

This has to do with the last thing I posted on so some background.

I'm writing a Windows Service to update DLLs in one folder based on whether they are an older "modified date" than that of another folder. 

I tried to compare the files by FileSystemInfo.LastAccessTime and .LastWriteTime methods, but since they are DLLs I'm having problems.  You can't "write" to DLLs, so that throws that one out and if I went by the time that it's accessed, this service would chew up my PC (the source folder is on a development server that is tested a lot).

What I'm wondering is this, is there a way to compare on a Modified date?  These DLLs are modified by a newer version being copied into that folder, thus replacing the old one.  The "Date Modified" is updated, but the "Date Created" stays the same for any given DLL Name.

Does anyone have any suggestions?  If I'm wrong on anything above, feel free to correct me, this is just what I've researched.