Move local folders to a Sharepoint Library
Alright... It's been a while since I have posted but i'm back again. This is probally more simple than I am making it. I am trying to move some directories and their contents to a sharepoint directory. I can save files to sharepoint using the Microsoft.Office.Interop assemblies with no problem. Only one problem, I use the office program to save stuff to sharepoint which works perfectly. My dilema is that when I try to use the following:
Code:
My.Computer.FileSystem.MoveDirectory(TextBox1.Lines(i), TextBox2.Lines(i), True)
It does not work! The root source drive is a local folder I.E. "c:\test1" and the destination source is "https://sharepointportal.com/testarea/test document library"So, substiture the textbox1.text and textbox2.text with the cooresponding source destinations and that is what needs to happen.
Am I using the wrong command? I keep getting an invalid destination error. I also tried just using "xcopy" and it doesnt accept the "https://" parameter. What gives? This should be very simple.
If it helps at all, the document library is also a web folder in My Network Places. Any help would be appreciated.
Re: Move local folders to a Sharepoint Library
That's not going to work. You have to use the physical path for this "https://sharepointportal.com/testarea/test document library". Suppose "https://sharepointportal.com/testarea/test document library" points to "\\server1\library" then "\\server1\library" is what you have to use, not the "https..."