Well, thanks for the answer.I tried to run the script and the result contains some errors.Now I'm in confusion...I state that I do not know ProjectWise and I have a customer who needs to export all documents because the activity is over.From what I have seen the Projectwise platform was used as a files repository (like a fileserver)I thought of using powershell to overcome the problem of long paths of which the "folder export wizard" tool is affected but it doesn't export all documents and I don't understand why because if I access the document through projectwise explorer I can export it.
Below is the error I encountered with the script you suggested:
Error: Could not find a part of the path 'd:\test\Affidatari\ATI Italiana Costruzioni - Manutenzione Pal Italia / Cardo\02- Subappalti\CASELLA IMPIANTI S.r.l.\Documenti Amministrativi\art.38\Massive_2015-09-15,0954'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at PWPS_DAB.ImportExport.ExportIndividualDocument(ProjectWiseDocument pwDoc, String sMonitoredFolder, Boolean bUseDMSFolders, Boolean bExportMetadata, Boolean bUseUTC, PSCmdlet cmdlet)Error on copy out of '\\?\d:\test\Affidatari\ATI Italiana Costruzioni - Manutenzione Pal Italia / Cardo\02- Subappalti\CASELLA IMPIANTI S.r.l.\Documenti Amministrativi\art.38\Massive_2015-09-15,0954\Modulo_Massive_2015-10-01,0925.fdf' which was being copied out because Did not exist on diskError: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at PWPS_DAB.ImportExport.ExportIndividualDocument(ProjectWiseDocument pwDoc, String sMonitoredFolder, Boolean bUseDMSFolders, Boolean bExportMetadata, Boolean bUseUTC, PSCmdlet cmdlet)
ProjecWise Explorer: 10.00.02.99
Windows7 pro SP1
Long paths are a different problem because ProjectWise allows very long folder paths while Windows file systems are normally limited to a max length of 260 (see MAX_PATH). ProjectWise will also allow some of the "special" characters to be used in the folder names that are not legal for paths or file names in Windows file systems. Brian Flaherty has at least one Blog posting about exporting with long folder paths, and you may want to search this site for more postings about long paths.
Dan WilliamsSolution ConsultantBentley Systems, IncorporatedPortland, OR, USA (Pacific Time UTC-08:00)
Thanks Dan,with your directions I found the problem that is caused by the dot at the end of some directories.In this case the command "Export-PWDocuments" creates the entire structure but fails to copy the documents after the folder with the dot at end because windows omits the dot at the end.Now I have to find a solution.
Directory on PWise:\\Milani Giovanni & C. S.r.l.
Directory on windows:\\Milani Giovanni & C. S.r.l