Brian Gibson wrote: > Does anyone know of a module you can use to list all of the current > connections to remote shares (whether they be to a UNC path or to a > drive letter) so they can be disconnected? > > I thought Win32::LanMan could do this but when I run "install > Win32::Lanman" from PPM I cannot download it.
On 21/08/2002 17:15:45 Steven Manross wrote: >Win32-Lanman can do this. > You didn't seem to rad his post to the end... Brian, in the meantime, try this: ---------------------------------------- #!perl -wl use strict; my @sessions = `net session`; foreach( @sessions ) { chomp; next unless /(\\\\\S+)/; print "Disconnecting $1 ..."; system( "net session $1 /DELETE" ); } --------------------------------------- -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: [EMAIL PROTECTED] http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs