SPIEFolder for SharePoint 2010

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

47 Replies to “SPIEFolder for SharePoint 2010”

  1. 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! 😉


  2. 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. 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. 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

  5. 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.


  6. 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.

  7. 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?

  8. 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=, 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

  9. 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=, 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!

    1. 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.

  10. 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!

  11. 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.

  12. 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?

  13. 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: 0x80070005 (E_ACCESSDENIED))

  14. I am testing the 2007 version of this app and getting a strange error. I have tried running spiefolder under

    “The Web application at http://localhost/sites/test/Shared%20Documents 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.”

    I’ve tried running it against:
    http://localhost/sites/test/Shared Documents

    and get the same response each time. I’ve run the command as a site collection admin and even the system account with identical results. Browsing to the url’s works fine.

    Am I doing something wrong? This environment is running 2007 SP2 (

    1. 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.

      1. 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.

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

  15. I love this tool! I have used it for exporting my MOSS2007 content. Two issues that I run into on some sites: the program seems to quite recursive mode. For example, it will export Documents, but not Documents/SomePowerpoint_files folder below it. The other issue I have is erroring out. That is, if the program encounters an error, it dies. I would love to have the program just log the error and keep on trucking. But, for free, I am certainly not complaining too loudly about it. Like I said, it has been GREAT for exporting most of my MOSS content! Thanks for any insight on the errors.

  16. Great Tool, works perfect when running it from the command line.
    I have to call it for a Sharepoint Powerscript file like this:
    & spiefolder.exe param1 param2

    It only show me the Syntax. Program does not start.
    When i pipe the output from how i start the program, to the screen, it look ok.

    What’s wrong ??????????????

      1. this is what it shows me on the screen when i pipe the call : spiefolder.exe -o import -url “http://lixtra/sites/eco/9999/Linak Documents” -directory “C:\Install\ECOkKonvertering\OLD_ECO_FOLDERS\9999-gp\Linak Documents” -recursive -overwrite

        Looks ok ???

  17. Hi Keith,

    I’m testing SPIEFolder and encountering an issue.
    Sharepoint 2010 is installed on 3 Windows Server 2008 R2 64 bits in a SP Farm.
    I tried to launch SPIEFolder (using the following command : SPIEFolder.exe -o import -url “http://my_url/sites/test/Shared Documents” -directory “C:\SPIEFolder-2.0″ -recursive”) on each server but the same error occured each time : “The Web application at http://my_url/sites/test/Shared Documents could not be found. Verify that you have typed the URL correctly….
    I’m logged as administrator on the servers; I ran the command prompt as administrator and “my_url” is the same as the one in the alternate access mapping.
    And this url is reachable in the browser from the servers or other workstations.

    Have you got any idea?


  18. Keith. I am trying to use SPIEFolder for SharePoint 2010; however, I am getting an error Could not load file or Assembly ‘Microsoft.Sharepoint, Version, Culture=neutural, PublicKeyToken=71e9bce11e9429c’ or one of its dependencies. The system cannot find file specified. I’m entering the url the user types in when they go to the site. What am I doing wrong?

  19. I’m trying to export the entire file structure to a directory. I am entering the following: spiefolder -o export “http://library.providence.lcl” -directory C:\SharepointDirectories -recursive

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

%d bloggers like this: