in reply to Problem with mapping windows shares and File::Find

I think you don't need to map/unmap the remote paths and can just use File::Find with the UNC directly:

find(\&wanted, "\\\\$computer\\c\$");

The error you're getting is likely due to your usage of a bare z: instead of explicitly specifying the root directory z:\.

Replies are listed 'Best First'.
Re^2: Problem with mapping windows shares and File::Find
by romandas (Pilgrim) on Mar 11, 2008 at 15:40 UTC
    I don't think that is it (but I am testing it as we 'speak') because I had z:\ in there previously, but have forgotten at this point why I took it out.

    Why would it (find()) work the first time through, but not the second?

    Update: You were right, both about the z:\ and about the UNC paths. Thanks!