Re: Problem with adding a connection with Win32::NetResource

2008-01-03 Thread Nash
On Jan 3, 12:19 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > If you mean that it doesn't report an error if you write > >    AddConnection({ RemoteName => 'Nash' }); > > then it's simply because you haven't asked it to do anything. You don'

Re: Problem with adding a connection with Win32::NetResource

2008-01-02 Thread Nash
Thanks to Rob and purlgurl, who answered me by mail. It turns out RemoteName was wrong. Nevertheless, it worked when I didn't define other RemoteShare parameters. Could anyone explain that? Since I have a shared folder named Nash on computer named Nash, \\\ \Nash\\Nash did the trick.

Re: Problem with adding a connection with Win32::NetResource

2007-12-31 Thread Nash
On Dec 30, 3:42 am, [EMAIL PROTECTED] (Chas. Owens) wrote: > What error does it return if you use a LocalName other than X:? I have tried other LocalNames, tried uppercase and lowercase. It still gives me ErrorCode 53 (the network path was not found) :( Happy New Year to all :) Nash --

Re: Problem with adding a connection with Win32::NetResource

2007-12-29 Thread Nash
On Dec 28, 7:11 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > Hmm, does it still work when all you give it is the RemoteName? Yes it does, that's what's puzzling me. I'll try using the strict and warnings pragmas, the way I saw in other scripts. Nash -- To unsubscribe, e-mail

Re: Problem with adding a connection with Win32::NetResource

2007-12-28 Thread Nash
Ooops, accidentaly left the # characters in RemoteShare definition... Disregard them. :) Nash -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Problem with adding a connection with Win32::NetResource

2007-12-28 Thread Nash
=> RESOURCEDISPLAYTYPE_SHARE, # 'Usage' => RESOURCEUSAGE_CONTAINER, 'LocalName' => "X:", 'RemoteName' => "Nash", }; $UserName = "No Name"; $Password

Problem with adding a connection with Win32::NetResource

2007-12-27 Thread Nash
e; $RemoteShare = { 'LocalName' => "X:", 'RemoteName' => "Nash", }; $UserName = "No Name"; $Password = ""; $Connection = 1; Win32::NetResource::AddConnection($Remote