Python Forum

Full Version: Copy documents to Teams using python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Everyone I am very new to python.
How do I automatically upload files to Teams using python.
I tired the following, but It did not work.

import subprocess
import shutil
subprocess.call(r'net use Y: http://teams/...., shell=True)
shutil.copy("C:\Documents\src\....","Y:\\")
I got an error message
Error:
(There's no such file 2 no such file or director Y:\\)