The repository browser lets you manipulate folders using scripts.
|
Use the following |
Description |
|---|---|
|
CreateFolder(ByVal FolderName As String) As BaseObject |
Method on RepositoryFolder that allows you to create a new folder in the repository browser |
Example:
RepositoryConnection.CreateFolder("VBTest")
|
Use the following |
Description |
|---|---|
|
DeleteEmptyFolder() As Boolean |
Method on RepositoryFolder that allows you to delete an empty folder in the repository browser |
For more information on documents, see Accessing a Repository Document.
Example:
Dim C
Set C = RepositoryConnection
C.Open "MyRepDef"
' Retrieve the deepest folder under the connection
Dim D, P
set P = Nothing
for each D in C.ChildObjects
if D.IsKindOf (cls_RepositoryFolder) then
D.DeleteEmptyFolder
c.refresh
end if
next