Import all files from the user guides folder on the central file share to the userguides document library on the intranet

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

Import files from shared folders from the years 2007 - 2010 to separate document libraries for each year, and move all processed files to an archive folder why creating subfolders in the document library

This can be accomplished by creating a batch file that executes the importer on separate folders one after another

OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\documents\2007" site:"http://intranet/documentation" -documentlibrary:2007 -archive:"\\fileshare\archive\2007" -createfolders
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\documents\2008" site:"http://intranet/documentation" -documentlibrary:2008 -archive:"\\fileshare\archive\2008" -createfolders
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\documents\2009" site:"http://intranet/documentation" -documentlibrary:2009 -archive:"\\fileshare\archive\2009" -createfolders
OrbitOne.SharePoint.Importer.exe -folder:"\\fileshare\documents\2010" site:"http://intranet/documentation" -documentlibrary:2010 -archive:"\\fileshare\archive\2010" -createfolders

Last edited Apr 28, 2010 at 8:27 AM by melg, version 2

Comments

Snorri Aug 11, 2011 at 9:53 AM 
These examples are flawed, the site parameter is missing '-' (hypen). Resulting in a not so informative error message:
ERROR - System.ArgumentException: Unsupported value line argument format.
Parameter name: site:http://importtest
at OrbitOne.SharePoint.Importer.CommandLineParsing.CommandLineDictionary.AddA
rgument(String argument)
at OrbitOne.SharePoint.Importer.CommandLineParsing.CommandLineDictionary.From
Arguments(IEnumerable`1 arguments, Char keyCharacter, Char valueCharacter)
at OrbitOne.SharePoint.Importer.CommandLineParsing.CommandLineParser.ParseArg
uments(Object valueToPopulate, IEnumerable`1 args, Char keyCharacter, Char value
Character)
at OrbitOne.SharePoint.Importer.CommandLine.Program.GetSettings(IEnumerable`1
args)
ERROR - documentlibrary is required
ERROR - site url is required
ERROR - folder is required