Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get remote PC windows shares

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
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 "");
}
}



Long live king Moshiach !
 
Hi

Does it return anything at all in @List?

Mike

The options are: fast, cheap and right - pick any two. [orientalbow] & [anakin]

Want great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top