Python Forum
Copying Folders From List in excel file and Pasting in New Location? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Copying Folders From List in excel file and Pasting in New Location? (/thread-20055.html)



Copying Folders From List in excel file and Pasting in New Location? - jadown - Jul-25-2019

Hello All,

I'm fairly new to coding with Python. I have an excel file that has a list of folder locations in column A and the destination folder in column B. I will like the code to loop through column A and copy the folders to the locations in column B. I'm not sure where to even start here. I've been Googling but I haven't found anything.

Thanks!


RE: Copying Folders From List and Pasting in New Location - Yoriz - Jul-25-2019

For reading the excel file
http://www.python-excel.org/

For copying the files
https://docs.python.org/3/library/shutil.html


RE: Copying Folders From List in excel file and Pasting in New Location? - jadown - Jul-30-2019

Thanks Yoriz!