Product(s):
ProjectWise Caching/Integration Server
Problem:
Fetchfiles utility does not recognize folders with spaces in the name (e.g. “Folder with spaces”) when trying to prepopulate the Cache one folder at a time.
Trouble shooting steps:
- Putting quotation marks around the whole destination folder path (“\path\to\folder with spaces”) didn’t help
- Putting quotation marks around the folder name (“folder with spaces”) works only if the folder is a root folder, located right under the Datasource “Documents” folder
Solution:
The solution is to use the [-i inputfile] option.
Example:
Instead of typing this in the command line:
fetchfiles.exe -d server:datasource -u user -p password -w C:\FetchFileWorkingDir -r \path\to\folder with spaces
Type this:
fetchfiles.exe -d server:datasource -u user -p password -w C:\FetchFileWorkingDir -i \path\to\inputfile
And in the inputfile, which is a simple notepad file, type this:
-d server:datasource
-u user
-p password
-w C:\FetchFileWorkingDir
-r \path\to\folder with spaces
See Also
https://docs.bentley.com/LiveContent/web/ProjectWise%20Administrator%20Help-v9/en/GUID-9290FF56-94A6-DC49-45D8-9DCEA50A0333.html