Hello all,
 
I'm trying to find all network connections on a pc including networked printer ones. Is there a similar way to find them as in GetDrives for AdminMisc? Here's what I'm doing to find the remote drives:
 
foreach $Drive ( Win32::AdminMisc::GetDrives() ){
     $Type = Win32::AdminMisc::GetDriveType( $Drive );
     if( DRIVE_REMOTE == $Type ) {
          $Drive =~ /(\w:)\\/;
          $letter = $1;
          push (@drives,$letter);
     }
}
 
thank you
Ivano


Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to