What about capturing the output of the command you are calling? And probably you have to redirect STDERR because this captures only STDOUT ... for the redirection you have to write 2>&1 iirc (sorry, no NT box around at the moment). So the code to use is: my $msg = `net use v: \\\\SERVERNAME\\SHARENAME 2>&1`;
-- Hofmator
In reply to Re: capturing error messages from backticks or system
by Hofmator
in thread capturing error messages from backticks or system
by Piercer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |