-----Original Message-----
From: Michael Cohen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 1:18 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Help: Query All Network Drives - Available or NotI have a problem trying to query all network drives that are currently used by my machine. If I perform a simple "net use" command, I get the following response:
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
Unavailable L: \\rtpgsa.raleigh.ibm.com\rtpgsa
Microsoft Windows Network
Unavailable M: \\rtpgsa.raleigh.ibm.com\homes
Microsoft Windows Network
Unavailable P: \\MICOHEN3-AFS\projects Microsoft Windows Network
Unavailable R: \\MICOHEN3-AFS\root Microsoft Windows Network
Unavailable T: \\MICOHEN3-AFS\nt Microsoft Windows Network
Unavailable U: \\MICOHEN3-AFS\user Microsoft Windows Network
Unavailable V: \\MICOHEN3-AFS\vlib Microsoft Windows Network
Disconnected X: \\squeaker\f$ Microsoft Windows Network
Disconnected Y: \\squeaker\c$ Microsoft Windows Network
OK Z: \\micohen2.raleigh.ibm.com\g$
Microsoft Windows Network
The command completed successfully.
However, if I use either the Win32::AdminMisc::GetDrives or Win32::FileOp::Mapped commands to query the network drives, I only get responses indicating the two drives, "X" and "Y", which in "net use" are "disconnected", and "Z", which is "OK".
How do I get a list of ALL network drives, "Available", "Unavailable", and "Disconnected", without actually using the "net use" command?
Thank you for your assistance!
Regards,
Michael Cohen
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs