Hello Guys,
My requirement is to truncate filename or folder name which is greater than certain number of characters. How can I achieve this?
I think I need to use regexp, but not sure how, any help is much appreciated.
example:
My file name : 12345678901234567890.txt
Length of my file name(Excluding extension) : 20 characters
Requirements: max length of the file should be 10
End result should be : 1234567890.txt
further description: the process should only keep first 10 characters and remove rest of the characters.
Thanks in advance.
Regards,
Andrew