Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding All templates and adding Icon to Workspace

Status
Not open for further replies.

domino1352

IS-IT--Management
Nov 20, 2002
40
AU
Old story lost my workspace icons (corrupted) and wanted a quick method of adding all Icans back (easier to sorth them back to the correct places..

the code below adds the ocons OK bt only dbs with extensions of NSF does anyone know of a method to bulk add templates...
Thanks in advance

Sub Initialize
Dim ws As New NotesUIWorkspace
Dim dbdir As New NotesDbDirectory("")
Dim db As NotesDatabase
Set db = dbdir.GetFirstDatabase(DATABASE)
Dim count As Integer
On Error Resume Next
count = 0
tpltcount = 0
dbcount = 0
othercount =0
While Not(db Is Nothing)
count = count+1
Print "Number => " & Cstr(count) & " " &db.filepath
Call ws.AddDatabase("" , db.FilePath)
Set db = dbdir.GetNextDatabase
Wend
Print "Final Count " & Cstr(Count)
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top