If you are talking about the first parameter to writelog2, then $file should point to the location of the log file. It could be:

 Code:
$file = "c:\temp\mylogfile.txt"
or
 Code:
$file = "\\servername\share\temp\mylogfile.txt"


Regards,

Brad