Also, writing the log to C:\ may no longer work, as the security on Windows 7 is tighter. Consider writing to %USERPROFILE% for user-specific logs.

Also, the posted script is not complete, as the original message that was being returned is not present.

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