vbscript - manipulating strings
Posted on 2007-10-17
Hello I'm writing a script and I've appeard to come to a screeching halt. What I am trying to do is get the path to a folder (which I can do without an issue) then add a character in front of the last folder in the path. So let's say my original folder path is this:
I need to append the characters zzz_ in front of the last folder in the path, like so
I've tried doing this by starting left to right, but all of the characters on the left get removed, so I just end up with the path: zzz_test. And I didn't want to start from the right to left, because this script should work for any folder in this path, and they all have different names so they could have a different amount of characters. I'm sure there has to be a way to do this I just can't seem to figure this out. Thanks.