I'm having some problems trying to get the outputed text into the log file.
When I run the script it only displays on the screen.

Here is the script.

$LogPath="\\freya\logging\LOG"
$LogFile="$LogPath\@USERID.LOG"
$RETURN=CHR(13)+CHR(10)
$Default = HKEY_CURRENT_USER\PRINTERS
$Printers + "HKEY_CURRENT_USER\PRINTERS\CONNECTIONS"

$LogError=OPEN(5,$LogFile,5)

$LogText="@USERID - @DAY @MDAYNO. @MONTH @YEAR - @TIME" GOSUB WRL
$LogText="" GOSUB WRL
$LogText="Name : @FULLNAME" GOSUB WRL
$LogText="Computername : @WKSTA" GOSUB WRL
$LogText="Domain : @DOMAIN" GOSUB WRL
$LogText="Logon Domain : @LDOMAIN" GOSUB WRL
$LogText="Logon Server : @LSERVER" GOSUB WRL
$LogText="DEFAULT PRINTER : READVALUE ("$DEFAULT","") redirectoutput("$LogFile") = 0"

Chris