oops I spoke too soon. My solution from last post actually increments the value of $filename twice.

well back to the drawing board. I just might have to call a For loop if this will not work.

_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)