Marcus,Everyone seems to have had this problem at one time or another. The solution is to add a value to the registry. Under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon, you need to add a value called RunLogonScriptSync, of type REG_DWORD, with a value of 1.
This will prevent Win2K initialising the desktop before the script completes, and also ensure that users see the script window as it runs. Once this is inplace, you can alo play with the various options of the SETCONSOLE() command.
As far as preventing the auto exit from Kix, how about something like:
code:
? "Press any key to complete logon process..."
Get $x
That should do the trick. Or you could use a Sleep() to pause the script so that messages could be read. Depends what you're trying to do.
HTH
[ 11 February 2002: Message edited by: Breaker ]
[ 11 February 2002: Message edited by: Breaker ]