Page 1 of 1

check and convert file names for windows compatibility

PostPosted: Tue May 30, 2023 4:40 am
by AEberli
I need a task to check all file names in my shared data folder and make hem windows compatible. But I already struggle on my first rule: File names are not valid if they start with Space ! I did not find any way to make this rule.

Re: check and convert file names for windows compatibility

PostPosted: Tue May 30, 2023 8:40 am
by Mr_Noodle
If you want to remove leading spaces, you can use a match pattern to match a file starting with a space. Create a custom attribute to match everything after the space. Look up match patterns in the help for more info on how to use them.

Re: check and convert file names for windows compatibility

PostPosted: Tue May 30, 2023 9:24 am
by AEberli
Mr_Noodle wrote:If you want to remove leading spaces, you can use a match pattern to match a file starting with a space. Create a custom attribute to match everything after the space. Look up match patterns in the help for more info on how to use them.


Sorry, I am beginner and I have read the help for match patterns and custom attributes, but a single space is not recognized as a character.

Image

Re: check and convert file names for windows compatibility

PostPosted: Wed May 31, 2023 8:44 am
by Mr_Noodle
How does it look in the preview?