Skip to content

SPIEFolder for SharePoint 2010

June 2, 2011

In between Scarborough on Saturday, setting up a new pool on Sunday, and finishing a good roast in the sun on Memorial Day, I put the final touches on an update to one of my older tools SPIEFolder.

This tool allows you to either Import a file system folder (And all files and optionally subfolders) into a SharePoint Document Library, and also export a SharePoint Document Library or a complete site’s content to the file system for SharePoint Foundation 2010 and SharePoint Server 2010. This tool completely replicates the document libraries folder hierarchy to the file system when exporting, and replicates the folder hierarchy from the file system to the document library when importing.

I noticed a backlog of requests on the old location for it, so I tried to incorporate most that I could, as well as updating the user interface to be a bit more consistent with everything else I’ve written.

The new features for SPIEFolder 2.0 are as follows:

  • Reworked interface and built for SharePoint 2010.
  • Added –recursive as an option, previous version always ran recursively
  • Added –overwrite switch to allow files to be overwritten. Previous version would always warn.
  • Added –quiet switch to suppress output.

The 2.0 release is also only released in binary form.

I was also going to create PowerShell Cmdlets for the import/export features in this release but have decided to hold off on that for a bit, as I’m considering re-working most of my tools into a shared set of objects/cmdlets within a larger toolset (More information on that at a later time).

As well, I’ve created a new page on my blog as the current source point to get to all of my free tools, etc.  See My SharePoint Tools.  From this page you can get a brief synopsis on my current toolset, along with links to the location of said tools.  To get to the direct reference for SPIEFolder and the link to download, just click here.

I’d love to hear your feedback on this version of SPIEFolder!  Let me know what you think!

- Keith

Advertisement
32 Comments leave one →
  1. June 2, 2011 6:42 am

    Keith –

    This is fantastic! The 2007 version of SPIEFolder has saved my butt more than once, and I have always thought it was one of the more underrated cool tools for SP2007.

    I’ll definitely be giving this a look next week :) Let me know if you want any help with the new set of tools! Oh, and my vote’s for a new version of SPSiteManager, for nostalgia’s sake if nothing else! ;)

    John

  2. June 2, 2011 6:59 am

    Thanks John :) As for SPSiteManager… Everybody! And I mean EVERYBODY! Is asking for that, but all it did was surpassed by either a) Things already built into the product now, or b) Gary Lapointe’s extensions :) .
    There ARE however, things I have in mind in which small remnants of SPSiteManager will make it into :) .
    Oh, and if you have ideas for additions here, obviously let me know.

  3. June 2, 2011 7:26 pm

    You’re very welcome :)

    I agree on the duplicate functionality thing, I would have to say that its pretty much all about the nostalgia aspect of things for me. Heck, I’d have to say off the top of my head that SPSiteManager is one of the few bright spots I can look back and remember from my days with SPS 2003 ;)

    I’ll do some noodling on suggestions and let you know what I come up with!

  4. thomas permalink
    June 6, 2011 4:39 pm

    i try the tool with SP2010. but i get a error: File or assambly “Microsoft.SharePoint … PublicKeyToken=71e9bce111e9429c… not found”
    i start the spiefolder from local drive c:\
    any idea
    thomas

  5. June 7, 2011 6:02 pm

    Thomas –

    Is SharePoint 2010 installed on the computer you’re running SPIEFolder on? This tool has to be run on a server in the SharePoint farm that is hosting the list you want to target, it cannot be run remotely on a client computer that you use to browse to the SharePoint site with.

    John

  6. Niklas permalink
    June 22, 2011 7:01 pm

    Is there a version that will help me export from SharePoint 2003??

  7. June 22, 2011 9:31 pm

    @Niklas, no there is not.

  8. Mat White permalink
    June 27, 2011 9:33 am

    Hi There,

    I have been able to sucsessfuly use your software to import my files into sharepoint, however when I export the data the folder is blank? can you assist with this please, thank you.

  9. June 29, 2011 6:27 pm

    Mat, does the source folder you are trying to export have any items at the root? Are you using the new -recursive switch? If you don’t have anything at the root of the folder, and you don’t include that switch, I could see why it would be empty. Could you possibly detail the exact syntax you’re using?

  10. July 21, 2011 9:35 pm

    Morning Keith, I’m rying to test the upload portion (wss 3.0, log on as farm acount)

    spiefolder.exe -o import -url “http://http://inside.mycomp.corp/design/try” -directory d:\spiefolder\try
    note(http://http://inside.mycomp.corp is our internal intranet)

    I get the following error:

    Could not load file or assembly ‘Microsoft.SharePoint, Version=14.0.0.0, Culture
    =neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The syste
    m cannot find the file specified.

    Can you tell what I’m doing wrong? Also where can I get the view the source?

    Thanks in advance and for working on this kind of stuff it really helps

  11. July 21, 2011 10:23 pm

    Mike, as the title of this posts states, this is for SharePoint 2010, not WSS 3.0 or MOSS 2007. That is why you are getting this error.

  12. July 21, 2011 10:52 pm

    Thank you Richie. Appreciate the fast response.

  13. August 26, 2011 5:16 am

    For those of you looking for a version of SPIEFolder 2.0 compatible for SharePoint 2007, it’s available now in the download package.

  14. Scott permalink
    September 2, 2011 2:46 am

    Keith, I’m having trouble getting the 2007 version to work on WSS 3.0. I have a default WSS 3.0 install with only test data (I’m testing this before production use), and it uses all the default ports and all services are installed on the one server. I would like to export all libraries from the top site down. The command I’m running directly from the server is:

    spiefolder -o export -url “http://localhost/default.aspx” -directory c:\spiefolder\export -recursive

    I’m pretty sure the URL I’m using is incorrect, so I need help there. What do I use to export everything from top down?

    Also, I’m getting an error similar to what other users posted:

    Could not load file or assembly ‘Microsoft.SharePoint, Version=12.0.0.0, Culture
    =neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.

    Any help you can give me would be greatly appreciated. Thank you for taking the time to make such a great tool – once I get this working it is going to save my hide!

    • September 2, 2011 2:50 am

      Hmmm, Scott, are you using RTM WSS 3.0? Or is this service packed? It SHOULDN’T Matter, but the system I tested it on was SP2. It may have something to do with the obfuscation applied to the executable if everyone is having a problem with it loading the SharePoint assemblies, but I would have expected that to happen on my testing as well.

      BTW, the -recursive option will not drill down to any sub sites , only the current site and all of it’s folders.

  15. Scott permalink
    September 2, 2011 3:42 am

    Keith, dumb mistake – I didn’t realize that my coworker installed 2.0 on the test server. I blew it away and installed 3.0 SP2. Now the command runs without that error, but I still can’t figure out the proper syntax. How to I run the command to export all documents in the entire site as well as all subsites. Can you assist? Thanks again!

    • September 2, 2011 3:45 am

      Well Like I said, the -recursive option will not drill down to subsites, just recursively through folders. You might want to trim off the page ref on the url, i.e. just http://localhost

  16. Scott permalink
    September 2, 2011 3:51 am

    Gotcha. I thought based on the PDF that there would be a way to export the entire SP site. I probably read it wrong. http://localhost seemed to work for the one site btw.

    Any ideas on a way to do ALL sites? I guess if I had a way to dump and entire list of sites to a file somewhere I could run a batch along with your utility. Forgive me, I’m pretty much a Sharepoint newb.

  17. September 13, 2011 7:36 am

    I have SharePoint Foundation from a hosting service and I would like to be able to do this type of file operation but cannot since your tool requires server access (which i don’t have). Do you have any suggestions about how I might be able to do this?

    • September 13, 2011 7:45 am

      Well I have something in the works for that, but no concrete date yet.

    • October 16, 2011 10:50 pm

      Your curanim must be protecting some very valuable brains.

  18. techsupport permalink
    November 2, 2011 6:07 pm

    Any idea why this is happening? I’m running export as admin. Looks like some hidden sharepoint folder. Is it possible to exclude it somehow?

    Processing Folder /sites/intranet/dc/pveps
    Processing Folder /sites/intranet/dc/pveps/Forms
    Exporting file file Upload.aspx to d:\temp\Forms\Upload.aspx
    Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))

    • November 4, 2011 6:16 pm

      Sorry, no exclusions as this time. I would run it as a Site Collection admin, or someone who has full control policy on the webapp. That’s your best bet.

  19. Ludovick permalink
    February 9, 2012 6:52 pm

    Please…. link down

  20. David permalink
    January 17, 2012 10:46 pm

    I created a brand new site collection and a new web application to hold it and get the same error on that one in 2007.
    spiefolder -o export -url “http://server:2966/testing” -directory D:\SPIEFolder-2.0\2007\test –recursive

    testing is the name of a new document library with 2 files in it.

    Any insight would be appreciated.
    The 2010 version works fine in my 2010 environments.

  21. January 17, 2012 11:54 pm

    David, “get the same error on that one in 2007″, what exact error are you talking about?

  22. David permalink
    January 21, 2012 3:23 am

    Sorry, I was replying to my original post.. I’m still getting this error: “The Web application at http://server:2966/testing could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.”

    Yet if you put that in a browser, it works fine for accessing the documents library. Sorry I didn’t see this sooner.

  23. Tim Kehoe permalink
    January 28, 2012 1:26 am

    David
    I was gertting the “could not be found” error until I ran it in a command windows opened with “Run as administrator”.

Trackbacks

  1. SPIEFolder for SharePoint 2007/2010 « Keith Richie
  2. SharePoint Tips - Secrets of SharePoint -
  3. Migrando contenidos de Sharepoint a Alfresco - Blog - zylk.net

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.