Mine is similar to this question.
How to copy a file from a network share to local disk with variables?
The only difference is my network drive has a passwor
If you have the pywin32 library (eg comes part of the ActiveState Python distro), then you can get it done in a few lines, without mapping a drive:
import win32wnet
win32wnet.WNetAddConnection2(0, None, '\\\\'+host, None, username, password)
shutil.copy(source_file, '\\\\'+host+dest_share_path+'\\')
win32wnet.WNetCancelConnection2('\\\\'+host, 0, 0) # optional disconnect
There is a more complete example on ActiveState Code