How to use win32.NetUseGetInfo()

Wolfgang Strobl ws at mystrobl.de
Fri Dec 7 13:19:23 EST 2001


On 7 Dec 2001 00:30:17 -0800, frankimmich at gmx.de (F.Immich) wrote :

>I have a question concerning the win32net module. 
>I want to map the networkpath (UNC) to the corresponding network
>resource within Python.
>E.g. E: = \\server1\dr1\dir2
>Therefore I think I have to use NetUseGetInfo() ? 

No, you don't. 

Use NetUseAdd, like so:

>>> win32net.NetUseAdd(None,1,{'remote': u'\\\\wbox\\filme', 'local': u'v:'})
>>> win32net.NetUseGetInfo(None,"v:")
{'remote': u'\\\\wbox\\filme', 'local': u'V:'}
>>> 

-- 
Thank you for observing all safety precautions



More information about the Python-list mailing list