Hi
I’m trying to find out which databases are locally encrypted in the mail folder on the server. Here is the agent which I’m trying to run. While this code runs fine on my local it doesnt run with the error input past end of file when I’m trying to run on the server using server’s local nlnotes. Here is the code I’m trying to run
Declarations
Const wAPIModule = “NNOTES” ’ Windows/32
Declare Private Function NSFDbOpen Lib wAPIModule Alias “NSFDbOpen” _
( Byval P As String, hDB As Long) As Integer
Declare Private Function NSFDbClose Lib wAPIModule Alias “NSFDbClose” _
( Byval hDB As Long) As Integer
Declare Private Function NSFDbIsLocallyEncrypted Lib wAPIModule Alias “NSFDbIsLocallyEncrypted” _
( Byval hDB As Long, V As Boolean) As Integer
Declare Private Function OSPathNetConstruct Lib wAPIModule Alias “OSPathNetConstruct” _
( Byval NullPort As Long, Byval Server As String, Byval FIle As String, Byval PathNet As String) As Integer
Check local Security
Function IsLocallyEncrypted(db As NotesDatabase) As Variant
f% = Freefile()
Chdir “c:\data”
Open db.FilePath For Binary Access Read As #f%
Get #f%, &H0283, v%
Close #f%
IsLocallyEncrypted = Not ((v% And &HFF) = 0)
End Function
Agent Initialization
Dim dbdir As New NotesDbDirectory(“”)
Dim db As NotesDatabase
Set db = dbdir.GetFirstDatabase(DATABASE)
While Not(db Is Nothing)
'Msgbox db.Title, , db.FileName
If (IsLocallyEncrypted(db)) Then
x = x +Chr(13)+“Encryption = Yes”+db.Title+“fileName:”+ db.FileName
Else
y = y + Chr(13)+db.Title+“fileName:”+ db.FileName
End If
Set db = dbdir.GetNextDatabase
Wend
Msgbox x +" Vs "+y
Any ideas why it works fine on my client but has issues running on the server client??
Thanks
Padmaja