in reply to Scanning for windows shares
...okay, it looks like http://search.cpan.org searches aren't working today, so here's the POD excerpt:
# # This example displays all the share points in the entire # visible part of the network. # use strict; use Win32::NetResource qw(:DEFAULT GetSharedResources GetError); my $resources = []; unless(GetSharedResources($resources, RESOURCETYPE_ANY)) { my $err; GetError($err); warn Win32::FormatMessage($err); } foreach my $href (@$resources) { next if ($$href{DisplayType} != RESOURCEDISPLAYTYPE_SHARE); print "-----\n"; foreach( keys %$href){ print "$_: $href->{$_}\n"; } }
--Solo
--
Well, I suppose I could hotwire this thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Scanning for windows shares
by Anonymous Monk on Jun 24, 2003 at 17:50 UTC |