Les raises a very good point here.. You should never, ever have a "clear text" password in a script.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's