Technorati tags: Show-n-Tell Thursday,
Lotus Domino,
DominoThen at the end I add some cleanup stuff:fileInfo = Dir$(outfilename) If Not (fileInfo = "") Then rslt = Msgbox ("keyviewFixed.ini found in Notes Excutable Directory." & Chr(10) & getNotesProgramDirectory() & Chr(10) & "Overwrite it?", 16 + 4 ) If rslt <> 6 Then Exit Sub Kill outfilename End If
inpFile = Freefile Open fileName For Input As inpFile outFile = Freefile Open outFileName For Output As outFile While Not Eof(inpFile) Line Input #inpFile, fileBuffer Forall d In dlls dllpos = Instr(Lcase(fileBuffer), Lcase(d)) If dllpos > 0 Then If Left(fileBuffer, 1) <> ";" And Left(fileBuffer, 1) <> "*" Then ' if it is already commented out, don't do it again fileBuffer = "; " & fileBuffer Print #outFile, "; The next line was commented out by an agent fixing Technote 1229918," changes = changes + 1 End If End If End Forall Print #outFile, fileBuffer Wend Close #inpFile, #outFIle
If changes = 0 Then Kill outfileName Msgbox ("No changes were made. You are proteted from the issues of the technote.") Else Kill filename Filecopy outfileName, fileName Kill outfileName Msgbox (changes & " were made to the keyview.ini file. You are now proteted from the issues of the technote.") End If getOut: Exit Sub
1. Rock02/24/2006 04:44:50 PM
Homepage: http://www.lotusgeek.com
Well, not really. This fix is specifically for 6.x (less than 6.5.5) and 7.x (less than 7.0.1). R5 isn't affected. So, my code technically works for the target audience; however you're right in that if we had a need to do this for the R5 folks, my solution wouldn't work - yours would.
But hey, at least I got you to post 
Rock
2. Newbs02/28/2006 12:19:45 PM
Homepage: http://www.henrynewberry.com
Fixed the download link, sorry about that.
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 | |||