I have the following code that maps a remote drive to the letter E. I first need to check to see if this drive letter "E" is already in use, and if so I need to disconnect it and re-map with the follwing code... Any suggestions?
print "Mapping drives from .ini file...";
my %NetResource = (
LocalName => "E:",
RemoteName => "\\\\Srvbuild\\E"
my $User = "";
my $Password = "";
if ( Win32::NetResource::AddConnection( \%NetResource, $Password,