Thanks loki! this works great
although one problem. I put it into my script and each time i run it, it displays this error message once.
/echo: insufficient parameters (line 1154, GXAC2.txt)
Dunno who
It still displays everything perfectly. Anyway i can hide this error?