ま、Python for Windows ExtensionsでWin32 APIを呼んでいるだけなんですけどね。ctypesでもOK。 import win32netcon import win32wnet res = win32wnet.NETRESOURCE() res.dwType = win32netcon.RESOURCETYPE_DISK res.lpLocalName = None res.lpRemoteName = r"\\remotehost\folder" res.lpProvider = None win32wnet.WNetAddConnection2(res, "password", "user", 0) | | 2009-10-06 23:35