Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Command line options

Mikhail Safonov edited this page Mar 25, 2022 · 2 revisions

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:username -password:password [-domain: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

Clone this wiki locally