Win32 drive mapping... aka "net use"
kellyk at my-deja.com
kellyk at my-deja.com
Mon Jul 31 16:53:14 EDT 2000
It would be nice to be able to do permanent connections. The reference
for WNetAddConnection2 says the last parameter is a flag to indicate
whether or not the connection is to be permanent. The win32wnet source
looks like it's hard coded to temporary.
Kelly
In article <sUug5.15076$4p3.118527 at news-server.bigpond.net.au>,
"Mark Hammond" <MarkH at ActiveState.com> wrote:
> win32wnet.WNetAddConnection2(win32netcon.RESOURCETYPE_DISK, "Z:",
> "\\\\brat\\c", None, None, None)
>
> The params are:
> Integer Type, // RESOURCETYPE_DISK, RESOURCETYPE_PRINT, or
> RESOURCETYPE_ANY
> String LocalName, // String or None
> String RemoteName, // String (required to be in network format
> String ProviderName,// String or None
> String Username,
> String Password)
>
> Mark.
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list