' SAMPLE ENUMERATING APP FOLDER Dim myFarm As New MetaFrameCOM.MetaFrameFarm Dim AppFolder As New MetaFrameCOM.MetaFrameFolder Dim RootAppFolder As MetaFrameCOM.MetaFrameFolder myFarm.Initialize(MetaFrameCOM.MetaFrameObjectType.MetaFrameWinFarmObject) RootAppFolder = myFarm.GetRootFolder(MetaFrameCOM.MetaFrameObjectType.MetaFrameAppFolder) For Each AppFolder In RootAppFolder.SubFolders TreeView1.Nodes.Add(AppFolder.FolderName.ToString) 'Sample output Applications 'Sample output OpenOffice 'Sample output MSOffice ' I would need to do another .SubFolders on each folder and so on :( ' Do I have to do this or can I use the below code to put an application in a folder in a tree view based on the output Next ' SAMPLE ENUMERATING PUBLISHED APPLICATIONS ' Yes, I understand variables are declaried twice. This is due to only one "Attach Code Snippet" checkbox Dim myFarm As New MetaFrameCOM.MetaFrameFarm Dim MyApp As New MetaFrameCOM.MetaFrameApplication myFarm.Initialize(MetaFrameCOM.MetaFrameObjectType.MetaFrameWinFarmObject) For Each myApp In myFarm.Applications TreeView1.Nodes.Add(myApp.DistinguishedName) 'Sample output Applications\App1 'Sample output Applications\App2 'Sample output Applications\OpenOffice\App1 Next
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE