Sub Initialize()
On Error GoTo a
Dim session As New NotesSession
Dim mailpath As Variant
'下面得出的路径为E:\Lotus\Domino\Data\
mailpath = Session.GetEnvironmentString("Directory",True) &"\"
MsgBox "mailpath---:" & mailpath
Dim tmpfile As Variant
'查找date目录下的mail文件中是否有aaa.nsf
If tmpfile = Dir$(mailpath & "mail\aaa.nsf") Then
MsgBox "数据库不存在!"
Else
MsgBox "找到数据库了"
End If
Exit Sub
a:
MsgBox "错误在代理agent_path的第" & Erl & "行,描述:---" & Error
End Sub
On Error GoTo a
Dim session As New NotesSession
Dim mailpath As Variant
'下面得出的路径为E:\Lotus\Domino\Data\
mailpath = Session.GetEnvironmentString("Directory",True) &"\"
MsgBox "mailpath---:" & mailpath
Dim tmpfile As Variant
'查找date目录下的mail文件中是否有aaa.nsf
If tmpfile = Dir$(mailpath & "mail\aaa.nsf") Then
MsgBox "数据库不存在!"
Else
MsgBox "找到数据库了"
End If
Exit Sub
a:
MsgBox "错误在代理agent_path的第" & Erl & "行,描述:---" & Error
End Sub