Reputation: 2929
I've developed a interop Excel application which generates various reports based on a copied template. The application has to be optimized to avoid useless routines such as updating a already up to date report.
There are 2 factors that creates the need of a very specific solution.
My idea was to use the file properties (Windows' right click properties) to add in a SQL row version or data hash.
However, so far, I haven't found a clean method to acheive this.
So the question is: Is there a .NET features or a highly supported / recommanded / maintained library to manage Windows' File Properties? If not, what alternative would you guys suggest?
Upvotes: 0
Views: 100
Reputation: 18474
If the file is only ever going to stored on an NTFS volume then you can use an Alternate Data Stream.
There is a Library on Codeproject here that lets you use them from a .Net project
The only things you have to watch for is that the ADS don't survive being copied to a non NTFS volume and non ADS aware copy applications may not copy them
Upvotes: 1