also, why not use %userpofile% for this.
making at the end:
WriteLine(1,'"%userpofile%"')
_________________________
!

download KiXnet