note
ggoebel
<p>Way back... I would have used Win32::lanman. But apparently that module has fallen by the wayside. Looks like Jenda is now maintaining Win32::FileOp though.</p>
<p>While it doesn't have all the knobs and buttons, it may be close enough. It won't show you disconnected or unavailable mappings... just the ones which are currently connected.</p>
<code>
use strict;
use warnings;
use Win32::FileOp;
my %drive = Mapped or die $^E;
for my $key (sort keys %drive) {
print "$key = $drive{$key}\n";
}
1;
__END__
</code>
1025881
1025881