Results 1 to 11 of 11

Thread: Windows Share Searching...

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Windows Share Searching...

    I need to find away to search all shares on multiple servers to see if a particular subdirectory of a share exists. Is there a quick way to do this? I ask coz there are 11 servers (same share name on each) and 167 shares to find

    Any help VERY much appreciated

    Windows 2000, BTW.

  2. #2

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Come ooooon, someone must know!!!

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well.

    Download some networking code from the web. Enumerate all servers on the network with shares.
    Store the server names in an array.

    Then :

    VB Code:
    1. Dim i As Long
    2. Open "c:\netview.bat" For Output As #1
    3.     For i = 0 To UBound(strServerNames)
    4.         Print #1, "@if exist \\" & strServerNames(i) & "\myShareName\ echo Share found on server : " & strServerNames(i)
    5.     Next
    6.     Print #1, "@pause"
    7. Close #1
    8. Shell "c:\netview.bat"

    ... that's how I'd do it.
    So basically you need the names of the servers in a batch file...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Don't have access to VB at work...any chance you could knock me up a quick util???

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I only have VB.NET... I'll try hang on.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Cheers I need to install it on 98 tho, the 2K machine is a Citrix desktop...

  7. #7
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Try this. Tell me if it gives you server names.
    Attached Files Attached Files
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  8. #8

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Missing MSCOREE.dll....guessing it's part of the .NET framework, but I ain't installing it on my pitiful PII laptop with Win98

    Cheers for trying anyway

  9. #9
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I would do it for you in VStudio6 but I don't have it installed anymore. Sorry about that
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  10. #10

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    No worries, I think I'm just gonna procrastinate and leave the problem for a while anyway

  11. #11
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

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