Get remote PC windows shares

M

MoshiachNow

HI,

I use Win32::Lanman for this goal fine on XP,however same perl script
finds no remote shares if run on W2K or W2003.

Is there any other method of getting the remote shares ?
Thanks

Code:

if( Win32::Lanman::NetShareEnum( $Machine, \@List ) ) {
foreach my $Share ( @List ) {
my $SHARE = $Share->{netname};
if ($SHARE !~ /.*\$/) {
push(@SHARES,$SHARE) if ($SHARE ne "");
}
}
 
I

ikeon

MoshiachNow said:
HI,

I use Win32::Lanman for this goal fine on XP,however same perl script
finds no remote shares if run on W2K or W2003.

Is there any other method of getting the remote shares ?
Thanks

Code:

if( Win32::Lanman::NetShareEnum( $Machine, \@List ) ) {
foreach my $Share ( @List ) {
my $SHARE = $Share->{netname};
if ($SHARE !~ /.*\$/) {
push(@SHARES,$SHARE) if ($SHARE ne "");
}
}

You can try Filesys::SmbClientParser.
http://search.cpan.org/~alian/Filesys-SmbClientParser-2.7/SmbClientParser.pm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top