Spaces in Folder / Site / Document Library Fail

Nov 9, 2011 at 1:17 AM

When working with the importer. everything works fine as long as my information does not have spaces in it. If I attempt to run it with spaces in any field it fails. 

example with spaces:

.\OrbitOne.SharePoint.Importer.exe -folder:"c:\example documents" -site:"http://sharepoint.site.com/site/one" -documentlibrary:"imported Data" -createfolders

error: ERROR System.ArgumentException: Unsupported  value line argument format.Parameter name: documents

example without spaces:

.\OrbitOne.SharePoint.Importer.exe -folder:"c:\example-documents" -site:"http://sharepoint.site.com/site/one" -documentlibrary:"imported-Data" -createfolders

results: completes successfully. 

the only difference in the 2 commands is that i added - (hyphen) to the paths. 

Any help would be appreciated.