But, I am not quite sure how to use your answer. My problem is:
- I have a File with the name "File #1.txt"
- perforce cannot handle this because the # sign indicates the revision number, therefore in case I ask for a list of files I get "File %231.txt"
- if one single in the 'list of lines' of the 'list iterator' contains this file name, the iterator fails
Where I have to apply the exclamation mark you mentioned? I cannot change the filename to File %!231.txt because this file does not exist - Perforce will not find such a file.
The ! symbol addresses the issue you reported, I have modified the example project and it works correctly. You should be able double quote the filename when passing it to perforce. Otherwise I guess I'm not seeing what the problem is. Perhaps if you flesh out your example a bit more so I can see exactly what you are trying to do?