Python - How to open Windows share using user name and password

后端 未结 4 1584
礼貌的吻别
礼貌的吻别 2020-12-10 14:57

I would like to access Windows share (ex. \\backupserver\\backups) from Python script. Share is protected by user name and password. How to open this share using user name a

4条回答
  •  醉话见心
    2020-12-10 15:28

    A nice library that wraps 'net use' command:

    http://covenanteyes.github.io/py_win_unc/

提交回复
热议问题