Problems with GetDetailsOf and SP2
am 18.03.2007 22:38:45 von Russell PacyHi,
I wonder if anyone has any pointers with this one ... pre SP2 I was forced
to uninstall the KB908531 update, as it seemed to break GetDetailsOf ...
course now SP2 is out, this is no longer an option...
I used GetDetailsOf to read the extended properties of jpg and gif files to
allow people to tag them and display them in a gallery - this had the
advantage that people didn't have to keep 2 sources up-to-date and made it a
little easier for people to update their images without assitance.
To verify the problem, I used the following example code from Microsoft:
<%@ LANGUAGE="VBScript" %>
<%
Dim arrHeaders(35)
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("e:\gallery\test\thumbnail")
For i = 0 to 33
arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
response.write i & vbtab & arrHeaders(i) _
& ": " & objFolder.GetDetailsOf(strFileName, i) & "
"
Next
response.write "
"
Next
%>
Using the extended properties, I could set an author, subject and title on
the file, and read it using GetDetailsOf - post KB908531, GetDetailsOf only
returns the 1st 8 entries in the file - the extended properties are no
longer visable.
I gather that this update adds an executable called Verclsid.exe ... this
may be the culprit, but I'm at a loss how to fix it.
Any suggestions gratefully received...