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



User will type the remote share on the command prompt as argument (For example: \\server\sharename). I want to login to that share and get the filenames in that path. [For example: if the sharename is \\abc\def, I have to log into that and get all the filenames in def directory. How should I proceed ? What modules should I use ? I figured out that for getting the filenames, I can use FILE::FIND but what to do with connection ?

Please Help.
Thanks.

jdporter fixed parens per consideration 0/6/0

Replies are listed 'Best First'.
Re: get files on remote share
by holli (Abbot) on Jan 26, 2006 at 18:06 UTC

      You can access the shared resource just mapping before the shared directory in a Drive unit, like F:\, for example. After that, you just need to supply the complete pathname. But using the related module is probably a more robust solution.

      Alceu Rodrigues de Freitas Junior
      ---------------------------------
      "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill