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't > get a local connection to a resource though - nothin

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

2008-01-02 Thread Jenda Krynicky
From: Nash <[EMAIL PROTECTED]> > 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, \\\ >

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

2008-01-02 Thread Rob Dixon
Nash wrote: > 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

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. Tried answerin

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

2008-01-01 Thread Rob Dixon
Nash wrote: Hi all, I'm new to Perl and I'm trying to use it to connect to a shared disc through a home network. This is what I've tried: #!/usr/bin/perl -w use Win32::NetResource;

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 -- To uns

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

2007-12-29 Thread Tom Phoenix
On Dec 28, 2007 6:45 AM, Nash <[EMAIL PROTECTED]> wrote: > On Dec 28, 5:55am, [EMAIL PROTECTED] (Chas. Owens) wrote: > > It also looks (based on the answer to your second question) like X: is > > not a valid name. Is it possible that you have already mapped a drive > > to X:? > > Of course not :)

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

2007-12-29 Thread Chas. Owens
On Dec 29, 2007 7:44 AM, Nash <[EMAIL PROTECTED]> wrote: > On Dec 28, 7:11pm, [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 o

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: [EMAIL PROTECTED]

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 Chas. Owens
On Dec 28, 2007 9:45 AM, Nash <[EMAIL PROTECTED]> wrote: > On Dec 28, 5:55am, [EMAIL PROTECTED] (Chas. Owens) wrote: > > > You are not using the strict pragma (this doesn't effect your current > > problem, but it is still a bad idea). > > Like I said, I'm new to Perl. By "pragma" I guess you mean s

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

2007-12-28 Thread Nash
On Dec 28, 5:55 am, [EMAIL PROTECTED] (Chas. Owens) wrote: > You are not using the strict pragma (this doesn't effect your current > problem, but it is still a bad idea). Like I said, I'm new to Perl. By "pragma" I guess you mean syntax? > It also looks (based on the answer to your second questi

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

2007-12-27 Thread Chas. Owens
On Dec 27, 2007 3:15 PM, Nash <[EMAIL PROTECTED]> wrote: snip > The program actually works if I omit the 'LocalName' definition in > line 4, i.e. it makes the connection. However, since I don't have a > local name I can't subseqently cancel the connection, and I'd like to > be able to do that. > Wi