May 11th, 2004, 05:25 AM
#1
Thread Starter
Hyperactive Member
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.
May 11th, 2004, 06:14 AM
#2
Thread Starter
Hyperactive Member
Come ooooon, someone must know!!!
May 11th, 2004, 07:51 AM
#3
Retired VBF Adm1nistrator
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:
Dim i As Long
Open "c:\netview.bat" For Output As #1
For i = 0 To UBound(strServerNames)
Print #1, "@if exist \\" & strServerNames(i) & "\myShareName\ echo Share found on server : " & strServerNames(i)
Next
Print #1, "@pause"
Close #1
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]
May 11th, 2004, 08:35 AM
#4
Thread Starter
Hyperactive Member
Don't have access to VB at work...any chance you could knock me up a quick util???
May 11th, 2004, 08:47 AM
#5
Retired VBF Adm1nistrator
I only have VB.NET... I'll try hang on.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
May 11th, 2004, 08:54 AM
#6
Thread Starter
Hyperactive Member
Cheers I need to install it on 98 tho, the 2K machine is a Citrix desktop...
May 11th, 2004, 09:09 AM
#7
Retired VBF Adm1nistrator
Try this. Tell me if it gives you server names.
Attached Files
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
May 11th, 2004, 09:15 AM
#8
Thread Starter
Hyperactive Member
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
May 11th, 2004, 09:23 AM
#9
Retired VBF Adm1nistrator
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]
May 11th, 2004, 09:30 AM
#10
Thread Starter
Hyperactive Member
No worries, I think I'm just gonna procrastinate and leave the problem for a while anyway
May 12th, 2004, 09:54 AM
#11
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width