Of course... my post was just a starter waiting for clarification to CO's question.

One of the path elements need to be replaced, according to skelm.
Quote:

I need to remove something in the path and replace with something else



Not having all the details, have not provided code on a silver platter but basically it is just a matter of using AScan() to find the old element number and replacing the element and then Join()ing the array back together and writing it out to the appropriate environment.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.