I have a 400 line login script that was working fine before I placed in a if RedirectOutput statement. The code I inputted is as follows:
Code:
  
;If RedirectOutput($rootserver + "ClnWinLogon\output\"+@WKSTA+".txt") = 0
; ? "Workstation = " + @WKSTA
; ? "UserName = " + @USERID
; ? "Opened Log file at " + @DATE + " " + @TIME
;Else
; ? "Failed to log. Please contact It.
;EndIf




Once this was placed in the script, it appeared to miss the first if statement right after that. (The only line between the first if statement and the end of this section was setting a variable).

Any ideas on what may have happened?

Thanks