What is the best way to map a network share to a windows drive using Python?
This share also requires a username and password.
I had trouble getting this line to work: 
win32wnet.WNetAddConnection2(win32netcon.RESOURCETYPE_DISK, drive, networkPath, None, user, password)
But was successful with this:
win32wnet.WNetAddConnection2(1, 'Z:', r'\UNCpath\share', None, 'login', 'password')
What is the best way to map windows drives using Python?