Results 1 to 2 of 2

Thread: Move local folders to a Sharepoint Library

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Location
    North Cackalaki
    Posts
    28

    Unhappy 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.
    Phillip Dieppa
    VB.NET Newbie 2.0


    AppBar Example

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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..."
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width