Google! (there - it's been said) \:D

Glengle Result:
 Code:
$Rc = RedirectOutput('path\to\file.txt')
"message" ?
$Rc = RedirectOutput('')
The RedirectOutput function sends all output that follows to the specified file. Running it again with an empty filespec turns off the redirection.

Simple!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D