From: "Larry Sandwick" <[EMAIL PROTECTED]> > I am trying to write a Perl script that will replicate a directory on > one computer to another. All of the computers are running XP. I do > have administrative privileges. > > The problem is when I run the line below I never get connected to the > computer from within the scripted. > > system "net use m: \\$node\\c\$ <file:///\\$node\c\$> user:/username > password";
Try to print the command instead of executing it. You'll see the problem. You may also want to try use Win32::FileOp; # http://Jenda.Krynicky.cz/#Win32::FileOp Map 'M:' => "\\\\$node\\c\$", {user => $username, passwd => $password, overwrite => 1}; Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]