Test.pak-paketin vieminen:
Dim catalog As Object Dim packages As Object Dim util As Object
On Error GoTo failed
Set catalog = CreateObject("MTSAdmin.Catalog.1")
Set packages = catalog.GetCollection("Packages")
packages.Populate
For Each pack In packages
If pack.Name = "Oma paketti" Then
Set util = packages.GetUtilInterface
util.ExportPackage pack.Key, "c:\test.pak", 0
Exit For
End If
Next
Exit Sub
failed:
MsgBox "Virhekoodi " + Str$(Err.Number)
End Sub
Katso myös
MTS-hallintaobjektit, MTS-kokoelmatyypit, MTS-hallintaobjektimenetelmät, MTS-hallinnan automatisoiminen Visual Basicin avulla