That whole algorithm bothered me too. SubStr was the only way I could see of grabbing what I wanted. In batch it is so easy, for /f "tokens=..., I even looked at split(), (it's hard not to see it when you are looking at SubStr() in the help file!) don't know now why I didn't look into it further.

But this Split(Split()) looks very interesting. I love things like this! I don't even know how it works yet, but it has that look of an unforseen, and very useful, usage.

Thanks again,
Jim
_________________________
Jim
--------------------