Without your code it makes it hard to really see what's up, but if you use the UNC rather than a mapped drive you won't need for windows to reconnect or connect at all for that matter. Try something like this.
open DH, "\\\\machine\\share" or warn $!;
my @dir_listing = readdir(DH);
close DH;
That will give you an array with the contents of the directory. You don't need to connect to "x:\\whatever" as long as you know the machine and share is called. Also, if you or someone should change the drive mapping it won't matter.
Good Luck!
| [reply] [d/l] |
I'll check that out as it's the simplest solution. My concern is that windows won't automagically poppup the username and password box. But I'll check it out.
| [reply] |
That just might be what I'm looking for.
| [reply] |
Win32::FileOp? (19 Jul 2003? Hasn't been updated for so long? Either it's so perfect or I've been lazy lately. Probably the latter:)
Jenda
We'd like to help you learn to help yourself
Look around you, all you see are sympathetic eyes
Stroll around the grounds until you feel at home
-- P. Simon in Mrs. Robinson |
| [reply] |