Hi,
I have read your code and your comments for this post.
I have a group of files I need to remove the last 15 characters form. The goal is to end up with a pdf extension only. I am trying to adapt your code to my needs. I can get this to work if I hard code the file name, but I cannot count on the file names being the same all the time. The problem seems to be in the for statement. I am not sure if I need the tokens or the delimiters.
Attached is my adaptation of the code.
[attachment deleted by admin to conserve space]