Are you adding the "\" character to the $files variable so you'll have a delimiter for the split command?

What about the If 2<Len($files) line? I'm not quite sure what checking the length is doing for you here.

Would I need to use the "right" command to pull the string for the file name with the "$files" variable and not the "$file"?

I know this is all over the map, but I'm trying to make sure I understand what is going on.

Thanks for your help.
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain