Here is one way:
Code:
$=RedirectOutput(@LSERVER+"\netlogon\log\"+@USERID+"."+@WKSTA,1) @DATE+"."+@TIME $=RedirectOutput("")


Note, you cannot normally write to the netlogon share, for very good reasons. It's not something that I would recommend.

You can remove the delimiters from the date / time if you wish by using the Join(Split()) technique (ask if you get stuck)

Change the ",1" to ",0" if you want to append to the file rather overwriting it each time.

There might be a better format for the data - when you post requests for help you should also describe *why* you are trying to do the task. Sometimes we will be able to provide you with a more robust alternative that you might not have considered. If we don't know what the background to the request is we can't help you as much as we'd like.