http://www.perlmonks.org?node_id=932386

vishalkbhatt has asked for the wisdom of the Perl Monks concerning the following question:

There is a folder,in which I have to upload an image, is shared via LAN on a linux machine. My PC runs on WinXP. This folder is located at 192.168.0.24\snapshot. This folder is password protected. So How can I connect to this folder providing Username and password, upload the image ther and close the connection. Then repeat the same process at random time interval..
  • Comment on How to access shared protected folder over network

Replies are listed 'Best First'.
Re: How to access shared protected folder over network
by roboticus (Chancellor) on Oct 19, 2011 at 12:55 UTC

    vishalkbhatt:

    Did you try the modules referenced in the first reply to your same question?

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

      Yes Robotics. I tried them but none of them are working. So if there is any other way which is clear to understand then pls help me. Thanks

        vishalkbhatt:

        We can't help if you don't show the code you tried and tell us what the error messages are. I could guess, but I'd probably be wrong. Instead, if you've got a bit of code that uses a module such as Win32::NetResource, then show the code, and tell us what error messages you're getting. Otherwise you're just waiting for a lucky guess.

        Remember--you want us to help you. Don't make us work too hard to help, or we'll move on to the next question.

        ...roboticus

        When your only tool is a hammer, all problems look like your thumb.

Re: How to access shared protected folder over network
by moritz (Cardinal) on Oct 19, 2011 at 12:47 UTC

    The right path is to solve the problem on the OS level, and make the network folder available with a local path. How that works is dependent of the type of network file system (SMB? NFS? AFS? something completely different?)

    If you want to do the file copying with Perl, you can then do it to that local path, just as if it were also stored locally. If not, I don't see the connection to perlmonks.

    A reply falls below the community's threshold of quality. You may see it by logging in.