How to collect the folder names?

Hi, I want to collect some subfolder names from differnt mailbox. (these folders are under some specific folder name)

   For example, Person A, Person B and Person C, all of them have created the same specific folder name as "Public Folder"; and Person A created the subfolder as "F1", "F2"; Person B created subfolder "F1", "F3"; and Person C created subfolder "F4". Note: all these subfolders are created under "Public Folder".

  Now I need to get the collection of all these subfolders under "Public Folder", and the result should be "F1", "F2", "F3","F4". (Acutally I need to copy these subfolders into a new database also under "Public Folder").

  Can someone tell me which method (use lotusscript) should I use to get the subfolder name under some specific folder? 

   Appreciate.

Subject: How to collect the folder names?

First you should have access to all db, then you can use db.views to get all views and folders names. The code can be like this:

forall x in db.views

'check if the string start with Public Folder

y = Mid(x , 1 , 14)

if y = "Public Folder" then

     call db2.EnableFolder(x)

end if

end forall

I hope it is what you need.

Regards