Mapping a drive to a network path

Jeff Epler jepler at unpythonic.net
Fri Jul 22 21:33:38 CEST 2005


import os
os.system(r"net use z: \\computer\folder")

Something in the win32net module of win32all may be relevant if you
don't want to do it through os.system:
    http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/win32net__NetUseAdd_meth.html

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050722/2e4c1b25/attachment.sig>


More information about the Python-list mailing list