also, what is the condition that is checked in the queryuser.bat?

heh, now this jens' piece of code logs off in all situations, but showing what is in that bat would enable us to translate that to kix...

thus making it run as fast as ferrari and even working [Wink]

also, think the problem is that the shell is calling bat without command-interpreter.
proper way would be:
code:
IF @WKSTA = "PDKCITRIX1" OR @WKSTA = "PDKCITRIX2"
IF @INWIN = 1
SHELL "%comspec% /c logout.bat"
if @error=0 logoff(1) endif
ENDIF
ENDIF



[ 05. February 2003, 16:19: Message edited by: Lonkero ]
_________________________
!

download KiXnet