Results 1 to 4 of 4

Thread: Network Issue

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    3

    Question Network Issue

    I am trying to find a script that I could configure to work on our network, that searches all of the machines on the domain for installed programs. I need to find out which programs are installed on these machines for licensing reasons. Is this possible? Thanks in advanced for your help.
    Last edited by devildawgusmc_1; Jun 7th, 2005 at 09:38 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help

    Quote Originally Posted by devildawgusmc_1
    I am trying to find a script that I could configure to work on our network, that searches all of the machines on the domain for installed programs. I need to find out which programs are installed on these machines for licensing reasons. Is this possible? Thanks in advanced for your help.
    How many machines are we talking about?

    There are a number of examples of recursive file searching that have been posted, but these routines are looking for specific files. A step in the right direction would be to build a database table of all file names that you want to search for. If you don't know what is out there, then either you aren't going to know what to search for, or you will have to have your program return EVERYTHING on every machine, and then have someone, or a group of someones go over what came back.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    3

    Re: Network Issue

    The network consists of about 150 machines. It would be fine with me if I could just find every .EXE file on these machines, and I would sort through the list myself. Thanks for the help.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Network Issue

    This is off the top of my head so it is probably gonna need some work, but play with a bit and see what you can come up with.
    VB Code:
    1. Option Explicit
    2.  
    3. Private MyFSO As New FileSystemObject
    4. Private FSOFolder As Folder
    5.  
    6. Private Sub SearchFolders(MyFolder As Folder)
    7.  
    8. Dim FSOFiles As Files
    9. Dim FSOFile As File
    10. Dim TempFolder As Folder
    11.  
    12. For Each TempFolder In MyFolder.SubFolders
    13.     List1.AddItem "DIR... " & TempFolder.Path
    14.     Call SearchFolders(TempFolder)
    15. Next
    16.  
    17. For Each FSOFile In MyFolder.Files
    18.     List1.AddItem FSOFile.Path
    19. Next
    20.  
    21. End Sub
    22.  
    23. Private Sub Command1_Click()
    24.  
    25. List1.Clear
    26. Set FSOFolder = MyFSO.GetFolder("H:\NetworkFolderName")
    27. Call RecurseDirs(FSOFolder)
    28.  
    29. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width