Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Map drives and printers from Perl

by ikegami (Patriarch)
on Jun 01, 2008 at 03:51 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://689500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-25 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found