Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: mapping a network drive

by arthas (Hermit)
on Jul 02, 2003 at 12:26 UTC ( #270780=note: print w/replies, xml ) Need Help??


in reply to mapping a network drive

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://270780]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-02-29 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?