in reply to Re: Win32:NetResource problem
in thread Win32:NetResource problem

Yes, I am trying the GetUNCName() for local shares. Is there any other way to get the local share information through any other perl module, or windows system commands.

Thanks.

Replies are listed 'Best First'.
Re: Re: Re: Win32:NetResource problem
by waswas-fng (Curate) on Aug 08, 2002 at 19:03 UTC
    From the Win32::NetResource docs...
    use strict; use Win32::NetResource qw(:DEFAULT GetSharedResources GetError); if (GetSharedResources(my $resources, RESOURCETYPE_ANY, { RemoteName => "\\\\" . Win32::NodeName() })) { foreach my $href (@$resources) { print "-----\n"; foreach(keys %$href) { print "$_: $href->{$_}\n"; } } }

    is this what you are looking for?

    -Waswas