how can I change "C:Webimages est" to "test"
Use:<BR><BR>strNewString = Right(<string>,<characters>)<B R><BR>Just replace <string> with your string and <characters> with the number of characters from the right.
Highlight C:Webimages and then hit delete.<BR><BR>Brain Power.
but what if the number of characters varies?
That's not what you asked though, is it? ;)<BR><BR>Check out these functions:<BR><BR>InStrRev()<BR>Mid()<BR><BR>And your answer shall be nigh.
Only if he knows how many characters the last folder has.<BR><BR>Brain Power.
Use the split function. The last element of the array will be the value you want.<BR><BR>Brain Power.
i've been doing this all week... In VBScript:::<BR><BR>Dim start, length, newString<BR>start = RevInstr(folders, "\") + 1<BR>length = Len(folders) - start <BR><BR>newString = Mid(folders, start, length)<BR><BR>Jason<BR>http://www.jasontconnell.com