code_junkie

How can I export a list of databases resident on a given Domino server?

Nov 12th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Sub Initialize
  2. Dim db As NotesDatabase
  3. Dim f As Integer
  4. f = Freefile
  5. Open "c:dbExport.csv" For Output As #f
  6.  
  7. Dim dbdir As New NotesDbDirectory("") ' opens LOCAL - put a server name here
  8. Set db = dbdir.GetFirstDatabase(1247) ' all databases - NSF, NSG and NSH (no templates)
  9. While Not(db Is Nothing)
  10. Print #f, """" + db.Title + """, """ + db.FileName + """"
  11. Set db = dbdir.GetNextDatabase
  12. Wend
  13. Close #f
  14. End Sub
Add Comment
Please, Sign In to add comment