Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Copying files to an authenticated Win32 share

by puploki (Hermit)
on Sep 13, 2005 at 13:07 UTC ( #491568=note: print w/replies, xml ) Need Help??


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:
    connecting \\server\share to g: Undefined subroutine &Win32::GetError called at 491533.pl line 54.
    But that could just be me missing something...
  • I'm also a bit twitchy about leaving a password in clear text lying around, but that's just me :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://491568]
help
Chatterbox?
[ovedpo15]: how fast and a good way to print error if more than one out of three variables are defined? for example if there are $a $b $c. I want that if for example $a and $b are defined - print error (also for $a and $c or $b and $c)
[ovedpo15]: its easy with three "if"s or one long "if" but is there a "nice" way :)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-04-22 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?