Karlo Lozovina wrote:
> I've been Googling around for easiest way to do these three things
> withoin a Python script:
> 
> - get a list of workgroups on LAN
> - get a list of computers in workgroup
> - get a list of shares of a computer
> 
> And i found next to nothing :(. The best I could do is try to use "net
> view" and parse it's output, but that seems really bad to me.
> 
> Is there a better and more simple way?

You should be able to use functions from the win32wnet module
to do this, specifically WNetOpenEnum and WNetEnumResource.

       Roger

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to