[python-win32] Accessing properties of share on DFS
Michael Kesper
mkesper at fsfe.org
Fri Sep 5 23:47:20 CEST 2008
Hi,
* Tim Golden <mail at timgolden.me.uk> [2008-09-01 17:13:20 +0100]:
>> * Tim Golden <mail at timgolden.me.uk> [2008-08-27 14:35:37 +0100]:
>>
>>> You might be able to get there with WMI. The following
>>> works on my own machine, but I'm not sure what machine
>>> you'd need to access to list the DFS shares. I'll see
>>> if I can persuade a friendly admin here to let me try
>>> things out:
It seems I need to access net32api.NetShareGetInfo or maybe
IADsFileShare, but I have to figure this out after my holiday.
Until now I used the trick to simply call os.listdir() on
the servers where I knew the homes are lying.
os.listdir is cool enough to work with UNC paths. :)
Best wishes
Michael
--
Free Software Foundation Europe (FSFE) [] (http://fsfeurope.org)
Treten Sie der Fellowship bei! [][][] (http://fsfe.org/join)
Ihre Spende ermöglicht unsere Arbeit! || (http://fsfeurope.org/donate)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080905/7b50337e/attachment.pgp>
More information about the python-win32
mailing list