blackadder has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I used the following code to obtain share information off a remote NT server (shares are always directory or a folder).
Now I need to also obtain the size of the share. Any perls of wisdom will be highly appreciated Blackadderif (Win32::Lanman::NetShareEnum($_, \ my @ShareList)) { foreach my $Share (@ShareList) { my ($Remark, $Path, $NetName); $NetName = $Share->{netname}; if("" ne $Share->{Remark}) {$Remark="($Share->{remark})";} if("" ne $Share->{path}) {$Path=$Share->{path};} else {$Path="No Permission to display";} push (my @ShareList, name=>$NetName, remark=>$Remark, path=>$Path}); foreach my $Item (@ShareList) { print "\n$Item->{name}"; print "\t$Item->{path}"; print "\t$Item->{remark}"; } } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to obtain the size of a remote Winnt4 share
by benn (Vicar) on Jun 18, 2003 at 12:26 UTC | |
Re: How to obtain the size of a remote Winnt4 share
by Asim (Hermit) on Jun 18, 2003 at 12:01 UTC | |
by zakb (Pilgrim) on Jun 18, 2003 at 12:05 UTC | |
by Asim (Hermit) on Jun 19, 2003 at 12:03 UTC | |
Re: How to obtain the size of a remote Winnt4 share
by wufnik (Friar) on Jun 18, 2003 at 13:19 UTC | |
by zakb (Pilgrim) on Jun 18, 2003 at 14:48 UTC |
Back to
Seekers of Perl Wisdom