Help with a script to copy the contents of multiple folders to similarly named folders on another drive.
I have around 100 folders. I am moving them into sharepoint online. Due to restrictions in sharepoint I have ended up creating a seperate sharepoint library for each folder.
I have used powershell to create identically named libraries in sharepoint as th folders I already have locally.
I have mapped a network drive to the sharepoint site and now have two windows open on my PC.
One showing the folders on the local drive and another showing the libraries in sharepoint - which appear just as folders too.
I have been manually going into each folder and copying the contents over which works fine but I would like to run some kind of script to automate this process. I have a text file containing the list of folder names if that helps.