Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!use strict; use Win32::NetResource; print "Mapping drives from .ini file..."; my %NetResource = ( LocalName => "E:", RemoteName => "\\\\Srvbuild\\E" ); my $User = ""; my $Password = ""; if ( Win32::NetResource::AddConnection( \%NetResource, $Password, +$User, 0)) { print "Done\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Disconnecting from a network drive
by joealba (Hermit) on Jun 03, 2002 at 15:09 UTC |