You should grab the command output using backticks instead of system():
my $output = `net.exe use * \\\\server_1212\\d$`; $output =~ /Drive (\w)/; my $letter = $1;
Hope this helps!
Michele.
In reply to Re: mapping a network drive
by arthas
in thread mapping a network drive
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |