This project is read-only.
Command-line options

As you're starting the program from a DOS prompt:

OrbitOne.SharePoint.Importer.exe -folder:folder -site:url -documenlibrary:name [-createfolders] [-createemptyfolders] [-archive:folder] [-username -password -domain] [-authenticationmode:[Windows|Forms]]

Required arguments:

-folder: The folder that will be imported
-site: The url of the SharePoint Site
-documentlibrary: The name of the Document Library

Example
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\2010\documentation" -site:"http://intranet/2010" -documentlibrary:"user guides"

This will process all files in the folder \\fileshare\2010\documentation and import them to the document library user guides on the SharePoint site http://intranet/2010
-archive:folder:
The folder that processed files will be moved to. Files will be moved to the archive. Folders will never be removed.
Example
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\2010\documentation" -site:"http://intranet/2010" -documentlibrary:"user guides" -archive:"\\fileshare\migrated\2010"
Import all files and move them to the folder \\fileshare\migrated\2010. This folder needs to be empty when the import is started

-createfolders -createemptyfolders
If specified folders will be created in the document library. empty folders are skipped by default but will be created when the "-createemptyfolders" argument is specified
Example
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\2010\documentation" -site:"http://intranet/2010" -documentlibrary:"user guides" -createfolders -createemptyfolders

-importhiddenfiles
When specified hidden files will be imoprted. By default they are skipped.

-username -password -domain
Credentials that will be used to connect to SharePoint.
Example
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\2010\documentation" -site:"http://intranet/2010" -documentlibrary:"user guides" -username:Administrator -password:******* -domain:litwareinc*
This will connect to SharePoint as litwareinc\Administrator. If no credentials are specified the credentials of the current user are used.

-authenticationmode
Windows or Forms. Windows is used is no authentication mode is specified
Example
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\2010\documentation" -site:"http://intranet/2010" -documentlibrary:"user guides" -username:admin -password:******** -authenticationmode:Forms
This will connect to SharePoint as the user "admin", using Forms authentication

Last edited Apr 6, 2011 at 9:31 AM by melg, version 11

Comments

GoCart Mar 27, 2013 at 7:20 PM 
The version I downloaded a couple of weeks ago lists this command-line argument:

-MovedFolder - If present, all imported files will be moved to the specified folder

Would you document this argument here as well, please? I don't seem to be giving it what it wants, or perhaps it doesn't really exist in the code itself...? Thanks!

johnmcalvert Apr 3, 2012 at 9:13 PM 
Regarding -archive:
- If -archive is not specified then files are not moved, they are left in the -folder path.
- Files that are not added to the document library, eg due to an error, are left where they were in -folder path.