Can i convert my personal folders to shared foldersHere the code. I used Notes API to increase speed, thus it run on Win32 platformonly. I have another that run on all platforms in case if you are using Unix orMac.Declare Function W32_NSFDbOpen Lib "nnotes.dll" Alias "NSFDbOpen" (Byval DbNameAs String, hDB As Long) As IntegerDeclare Function W32_NSFDbClose Lib "nnotes.dll" Alias "NSFDbClose" (Byval hDBAs Long) As IntegerDeclare Function NIFOpenCollection Lib "nnotes.dll" ( Byval hVDB As Long, ByvalhDDB As Long, Byval NoteID As Long, oFlags As Long, Byval hUL As Long,_hCol As Long, hNote As Any, UNID As Any, hCL As Any, hSL As Any) As IntegerDeclare Function NIFCloseCollection Lib "nnotes.dll" ( Byval hCol As Long) AsIntegerDeclare Function NIFFindDesignNote Lib "nnotes.dll" (Byval hDB As Long, ByvalvName As String, Byval Cl As Long, NID As Long) As IntegerDeclare Function NIFFindPrivateDesignNote Lib "nnotes.dll" (Byval hDB As Long,Byval vName As String, Byval Cl As Long, NID As Long) As IntegerDeclare Function NSFNoteDelete Lib "nnotes.dll" ( Byval hDB As Long, ByvalNoteID As Long, Byval flag As Integer) As IntegerDeclare Function FolderCreate Lib "nnotes.dll" (Byval hDDB As Long, Byval hFDDBAs Long, Byval tID As Long, Byval hForDB As Long, Byval fname As String,_Byval sname As Integer, Byval dType As Long, Byval Flag As Long, noteID As Long ) As IntegerDeclare Function FolderDocAdd Lib "nnotes.dll" (Byval hDDB As Long, Byval hFDDBAs Long, Byval noteID As Long, Byval hTable As Long, Byval Flag As Long) AsIntegerDeclare Function FolderDelete Lib "nnotes.dll" (Byval hDDB As Long, Byval hFDDBAs Long, Byval hFolder As Long, Byval flag As Long) As IntegerDeclare Function FolderRename Lib "nnotes.dll" (Byval hDDB As Long, Byval hFDDBAs Long, Byval hFolder As Long, Byval nName As String, Byval nSize As Integer,Byval flag As Long) As IntegerDeclare Function IDCreateTable Lib "nnotes.dll" ( Byval Align As Long, hTable As Long ) As IntegerDeclare Function IDDestroyTable Lib "nnotes.dll" ( Byval hTable As Long ) AsIntegerDeclare Function IDInsert Lib "nnotes.dll" ( Byval hTable As Long, Byval Id AsLong, isIn As Any ) As IntegerDeclare Function OSLoadString Lib "nnotes.dll" (Byval hM As Long, Byval StrCodeAs Integer, Byval Errstr As String, Byval bsize As Integer ) As IntegerDeclare Function OSLockObject Lib "nnotes.dll" (Byval Handle As Long) As LongDeclare Function OSUnlockObject Lib "nnotes.dll" (Byval Handle As Long) AsIntegerDeclare Function OSMemFree Lib "nnotes.dll" (Byval Handle As Long) As IntegerType CPos level As Integer MinLevel As String *1 MaxLevel As String *1 Tumbler(0 To 31) As LongEnd TypeDeclare Function NIFReadEntries Lib "nnotes.dll" (Byval hC As Long, cP As LmbcsCpos, Byval SN As Integer, Byval SC As Long, Byval RN As Integer, Byval RC AsLong, Byval RM As Long,_rB As Long, rBL As Any, rNES As Any, rNER As Long, rF As Integer) As IntegerDeclare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( Dest As Long,Byval source As Long, Byval length As Long)Sub Initialize Dim ColPos As CPos Dim hB As Long Dim NF As Long Dim sF As Integer Dim idlist As Long Dim idarr() As Long Dim i As Long Dim stat As Integer Dim s As New NotesSession Dim db As NotesDatabase Dim dbpath As String Dim rc As Integer Dim hDb As Long Dim view As NotesView Dim doc As NotesDocument Dim profile As NotesDocument Dim noteID As Long Dim fNoteID As Long Dim tNoteID As Long Dim fName As String Dim docnoteID As Long Dim hTable As Long Dim hC As Long Dim isIn As Integer On Error Goto Oops Set db = s.CurrentDatabase If db.server = "" Then dbpath = db.Filepath Else dbpath = db.server & "!!" & db.Filepath End If rc = W32_NSFDbOpen(dbpath, hDb) If rc <> 0 Then Error rc rc = NIFFindDesignNote(hDb, "($Inbox)", &H0008, tNoteID) If rc <> 0 Then Error rc Forall v In db.views fName = v.Name If v.isFolder And Instr(fName, "($" ) < 1 Then rc = NIFFindDesignNote(hDb, fName, &H0008, noteID) If noteID = 0 Then rc = NIFFindPrivateDesignNote(hDb, fName, &H0008, noteID) End If If noteID = 0 Then Error rc rc = NIFOpenCollection(hDb, hDb, noteID, &H0002, 0, hC, Byval&H0&, Byval &H0&, Byval &H0&, Byval &H0&) If rc <> 0 Then Error rc ColPos.Level = 0 ColPos.Tumbler(0) = 0 Do rc = NIFReadEntries(hC, ColPos, 1, 1&, 1, &HFFFF&,&H00000001&, hB, Byval &H0& , Byval &H0&, NF, sF ) If rc <> 0 Then Error rc rc = FolderCreate(hDb, 0, tNoteID, 0, "TEMP DO NOT DELETE -" + fName, Len("TEMP DO NOT DELETE - " + fName), 0, 0, fNoteID) If rc <> 0 Then Error rc If (hB <> 0) Then idlist = OsLockObject(hB) Redim idarr(0 To NF - 1) Call CopyMemory( idarr(0), idlist, NF * 4) rc = IDCreateTable(0, hTable) If rc <> 0 Then Error rc For i = 0 To NF -1 rc = IDInsert(hTable, idarr(i), Byval &H0&) Next rc = FolderDocAdd(hDb, 0, fNoteID, hTable, 0) If rc <> 0 Then Error rc rc = IDDestroyTable(hTable) If rc <> 0 Then Error rc OSUnlockObject(hB) OSMemFree(hB) End If Loop While ( sF And &H0020 ) rc = NSFNoteDelete (hDb, noteID, 1) If rc <> 0 Then Error rc rc = FolderRename(hDb, 0, fNoteID, fName, Len(fName), 0&) If rc <> 0 Then Error rc rc = NIFCloseCollection(hC) If rc <> 0 Then Error rc End If noteID = 0 End Forall rc = W32_NSFDbClose(hDb) If rc <> 0 Then Error rc Set profile = db.GetProfileDocument("Folders Conversion") profile.Status = "Completed" Call profile.Save(True, True) Msgbox("Congratulation! Folder Conversion Procedure completed.") Exit SubOops: Messagebox("An Error happened while converting folders. Please contactadministrator." + Cstr(rc)) Exit SubEnd SubSasneelam@lot.tatasteel.com@ozzie.notesnic.net on 08/14/2000 05:20:42 AMPlease respond to lnotes-l@ozzie.notesnic.net Sent by: lnotes-l@ozzie.notesnic.net To: Multiple recipients of list LNOTES-L <lnotes-l@ozzie.notesnic.net> cc: (bcc: Alex Gorlenko/HNS) Subject: Re: Can i convert my personal folders to shared folders Please post the codeThanksneelamagorlenko@hns.com@ozzie.notesnic.net on 11-08-2000 07:38:07 PMPlease respond to lnotes-l@ozzie.notesnic.netSent by: lnotes-l@ozzie.notesnic.netTo: Multiple recipients of list LNOTES-L <lnotes-l@ozzie.notesnic.net>cc:Subject: Re: Can i convert my personal folders to shared foldersIf you are on R5 there is a build in agent in Mail Template (called likeconvertfolders). If you are stil on R4.6 I can send you some code.SasRajeev_Thakur@palm.com@ozzie.notesnic.net on 08/10/2000 11:52:55 AMPlease respond to lnotes-l@ozzie.notesnic.net Sent by: lnotes-l@ozzie.notesnic.net To: Multiple recipients of list LNOTES-L <lnotes-l@ozzie.notesnic.net> cc: (bcc: Alex Gorlenko/HNS) Subject: Can i convert my personal folders to shared foldersHello,I know lotus help says no for converting personal folders to sharedfolders.Butif some buddy knows any way to do it,just let me know...Thanks in advance..rajeev