Navigation

Search

Categories

On this page

Front Page Macro to remove pfhover applets
IFilter fun

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 120
This Year: 1
This Month: 0
This Week: 0
Comments: 40

Sign In
Pick a theme:

# Wednesday, September 27, 2006
Wednesday, September 27, 2006 10:53:20 AM (Mountain Daylight Time, UTC-06:00) ( )

I can't really take credit for this. I found it somewhere on the net, and wanted to make sure I kept it around.

Sub HoverRepair()

Dim applet As IHTMLElement
Dim param As IHTMLElement
Dim paramStr As String
Dim Text As String
Dim URL As String
Dim target As String

For Each applet In ActiveDocument.all.tags("applet")
If applet.getAttribute("code") = "fphover.class" Then

Text = ""
URL = ""
target = ""
paramStr = ""
For Each param In applet.Children
If param.tagName = "param" Then
'paramStr = paramStr & param.outerHTML

If param.getAttribute("name") = "target" Then
target = param.getAttribute("value")
End If
If param.getAttribute("name") = "url" Then
URL = param.getAttribute("value")
End If
If param.getAttribute("name") = "text" Then
Text = param.getAttribute("value")
End If

End If
Next

paramStr = paramStr & "<a href=""" & URL & """"
If target <> "" Then
paramStr = paramStr & " target=""" & target & """"
End If
paramStr = paramStr & ">" & Text & "</a>"

applet.outerHTML = paramStr


End If

Next

End Sub

Comments [0] | | # 
# Friday, September 08, 2006
Friday, September 08, 2006 9:37:49 AM (Mountain Daylight Time, UTC-06:00) ( )

Batch script to run FiltDump against a list of files

SET FiltDump="C:\Programs\Microsoft Platform SDK for Windows Server 2003 R2\Bin\FiltDump.Exe"
net use z: /delete /y
net use z: \\server\share
for /R z:\subfolder1\subfolderN\ %%i in (*.*) do @%FiltDump% %%i
Comments [0] | | #