> Your best bet is to either use the cgi-bin trick
mentioned earlier or
> set up some way to send a signal to another process
(maybe even on
> another system?) that will disconnect the sessions for
you.
I now found a way via CGI like this:
use Win32::NetResource qw(NetShareGetInfo);
NetShareGetInfo($netname, \%SHARE, $servername);
print $cgi->h3("$SHARE{'current-users'}");
system ('net sessions /delete /y');
this works ok, but now the target-users have a problem: they
need to just
disconnect *specific* connections to specific files. The
system command used
here though deletes every session, so other applications
would be affected
too...
So is there a way to list all existing sessions? The
NetResource Command
only gives me the number of connections...
Lars
_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|