I hope someone can show me what I'm doing wrong here...

I have a script that contains a SLEEP statement. This script is launched from a batch file using a statement of the form "start /min kix32 myscript.kix", which generates a minimized console window for the KiX script to run in.

To my complete horror, I discovered that by clicking the close box on that console window (the standard 'X' in the upper right corner), not only does it terminate the KiX script, but it logs the user off the machine entirely! This is quite undesirable for a variety of reasons, not least of which that the user loses his dial-up connection and whatever else he/she might have been working on.

To see this behaviour, all you need to do is to create a KiX script with the following one line of Code:
SLEEP 30

launch it, and then click the Close button on the window during the 30-second sleep period.

(I'm running this under Windows 2000 SP4, if that makes any difference...)

Was this intended behaviour on the part of the KiX designers, or is it simply a bug? If it is desired behaviour, is there some way to disable it? Curious users will click whatever they want to click - they shouldn't be kicked out of the system for trying to close a window!

Thanks in advance,

-- Jeff
-- aka The Eternal Newbie
_________________________