Also, there are some UDFs you can use:

Log(): Log string to file or console

DisplayText() - Display text incl. logging option

OpenFile() - Open the specified file with options.

WriteLog() - Generic logging facility for scripts

WriteLog2() - Writes to a specified log file with optional TimeStamp
_________________________
Co