Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Map drives and printers from Perl

by ikegami (Pope)
on Jun 01, 2008 at 03:51 UTC ( #689500=note: print w/replies, xml ) Need Help??


in reply to Map drives and printers from Perl

my $printerpath="\\server\printername";
should be
my $printerpath="\\\\server\\printername";

$workstation->MapNetworkDrive("X:",\\server\path);
should be
$workstation->MapNetworkDrive("X:","\\\\server\\path");

And it would be good if you showed how to check for success.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689500]
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 2021-03-07 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (122 votes). Check out past polls.

    Notices?