PermaLink 64-bit DSOFile and Windows File Metadata12/04/2007 03:19 PM
Some of you may be familiar w/ MS' many failed attempts at getting metadata onto the filesystem...what is surprising is that you can do this today on any NTFS filesystem.  MS provides DSOFile and the source code for a DLL that lets you do this.  While it was intended to be used for OLE documents, it'll also work for plain text files that are not using OLE Structured Storage.

The DLL is relatively easy to use in ASP.Net via the imported Interop, however, this ties your ASP.Net app to be 32-bit.  I've compiled for 64-bit Windows w/ the following caveats:
- it can't read Date properties on 64-bit systems
- if you use it to write a bunch of times, it sometimes causes IIS to crash

Even with these problems, it's still useful if you want to use it only for reading OLE document properties or file metadata. If anyone finds fixes to the two problems above, please let me know so I can update this code. This code also includes my fix for the "access denied" error when accessing empty summary properties.

One warning for those of you thinking of using file metadata for code you put on customer sites: you *cannot* just zip up the files because zip doesn't know that there is weird NTFS metadata associated with the file. You have to use a Windows share to copy the files w/ metadata.

Comments :v

1. Pete02/12/2008 05:01:16 PM


Hi Ken, thanks so much for fixing the link. I really appreciate it. kindest regards, Peter




2. Ken02/12/2008 01:32:36 PM
Homepage: http://www.keysolutions.com/blogs/kenyee.nsf


Pete: yes, since the DLL is written in C++, it has to be rebuilt for Windows 64-bit. I fixed the link in case you want to download it.




3. Pete02/12/2008 05:46:49 AM


Hi Ken,

Ive been having some problems with DSOfile on a 64 bit platform. do you need to recompile the dll? the link you give is down, thanks, peter




Start Pages
RSS News Feed RSS Comments Feed CoComment Integrated
The BlogRoll
Related Links
Calendar
May 2008
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Search
Contact Me