Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

How to access shared protected folder over network

by vishalkbhatt
on Oct 19, 2011 at 12:40 UTC ( #932386=perlquestion: print w/replies, xml ) Need Help??
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\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


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


    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


        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.


        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.

      Basically the script is developed to keep an eye on every person's computer working in my company. It takes screenshots of their monitors at random time and upload them on server. SO now the problem in making the network folder available locally is then everyone will be able to access it and that defeats the purpose of running this script itself. That is why I need to store it on the network folder and that too with password protection.

        Wow. Does the country you work in have any privacy laws? Stuff like that is forbidden where I live (Germany), and in many other countries.

        There are better existing solutions for spying on employees, I suggest you seek them out
        makes me feel glad to be living in a country where people like you are prevented from doing nasty things like that. What you need is not a Perl script but a bit of trust in your employees. You'll be amazed what that can do to a working environment....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://932386]
[stevieb]: whale oil beef hooked... Strawberry just implemented a JSON structured Perls Available. That fits right in with what I've done with berrybrew quite well me thinks.
[choroba]: Good morning!
[stevieb]: morning, choroba

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-02-23 03:32 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (338 votes). Check out past polls.