What is the best way to map a network share to a windows drive using Python? This share also requires a username and password.
An alternative to subprocess:
import os os.system("net use m: \\\\shared\folder")
Or
import os cmd = "net use m: \\\\shared\folder" os.system(cmd)