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

When I access files on our network through a link a window pops up for me to enter my ID and password. I need to access those files through a script. Once I've used the window my script works but I want the script to log in. How do I pass my ID and password via the script so I can bypass the pop up window? Thanks.
  • Comment on Need to log in through my script to access password protected files.

Replies are listed 'Best First'.
Re: Need to log in through my script to access password protected files.
by bichonfrise74 (Vicar) on Aug 14, 2009 at 18:37 UTC
    Have you considered looking at Expect?
Re: Need to log in through my script to access password protected files.
by tokpela (Chaplain) on Aug 14, 2009 at 22:36 UTC

    You should look at the Win32::FileOp module.

    This will allow you to pass your credentials through the script and access your files.

    Specifically, look at the Connect or Map functions.

Re: Need to log in through my script to access password protected files.
by nedals (Deacon) on Aug 14, 2009 at 23:38 UTC

    This sounds a lot like htaccess's Basic Authentication and, alas, I do not believe you can do what you want.

    Take a look at Perl and htaccess

Re: Need to log in through my script to access password protected files.
by Shunryu (Initiate) on Aug 14, 2009 at 21:24 UTC
    Just to clarify; I want the script to pass the ID and password to security so it can access the files in a protected directory.