Python Forum
Copy documents to Teams using python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy documents to Teams using python
#1
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:\\)
buran write Mar-23-2021, 05:27 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting parts of paragraphs from word documents using python-docx library & lists Den0st 1 28,357 Oct-08-2025, 05:56 AM
Last Post: OtiliaGen
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 2,058 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Word documents merging crewdk 1 5,261 Apr-03-2023, 06:32 AM
Last Post: buran
  Сombine (Merge) word documents using python-docx Lancellot 1 18,782 May-12-2021, 11:07 AM
Last Post: toothedsword
Question Mouseover(Hover/Float) text in PDF documents ak52 1 3,972 Feb-24-2021, 06:13 PM
Last Post: nilamo
  Confused by 'break' in the official documents Chuck_Norwich 2 3,674 Apr-12-2020, 09:26 PM
Last Post: Chuck_Norwich
  To Copy text values to Excel using Python ksasi2k3 16 24,547 Dec-26-2019, 11:59 AM
Last Post: ashutoshdeodhar
  Copy data from different workbooks into Master sheet with Python Fatman003 0 3,128 Aug-27-2019, 07:36 AM
Last Post: Fatman003
  How do I copy files faster with python? steckinreinhart619 7 29,090 Jul-19-2019, 11:47 AM
Last Post: perfringo
  Making a generalised CSV COPY script in Python Sandy7771989 3 4,163 Jul-05-2019, 11:02 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020