Okay I did some testing and Christophe Melin's code seems to work as expected on XP and NT4 / Local and Remote.

A bit odd looking compared to how I code, but none the less after reviewing it - it does appear to work correctly. That REPLACE code was initially a bit misleading for me, but I see how it is working now. Good job Christophe.

So there Mathhewst, at least 2 versions that work and the 3rd one by Jade should also work overall, didn't do any testing of that one though as noted elsewhere in this posting.