not really sure what's going on there but 2 things.
first, you don't use the wshpipe so why do you include it?

secondly, instead of parsing the path and writing it to file, you could do something like:
Code:

$segment = Split(%path%,$ORAhome)
For $i = 0 To Ubound($segment)
$path=$path+substr($segment[$i],instr($segment[$i],";")+1)
Next
set "path="+$path



totally different approach, I know.
just wanted to write some code
_________________________
!

download KiXnet