in reply to Copying files to an authenticated Win32 share
Very neat, I always like pure Perl ways of doing stuff. A couple of thoughts:
- If you don't have a Windows domain (i.e. have a set of disparate boxes in workgroups) then you would need to specify a valid account on the remote machine in the form "remotemachinename\\username".
- When I ran your code on my machine, I got the following error:
But that could just be me missing something...connecting \\server\share to g: Undefined subroutine &Win32::GetError called at 491533.pl line 54. - I'm also a bit twitchy about leaving a password in clear text lying around, but that's just me :)
|
---|
In Section
Code Catacombs