Wow! You are all good! I have never received such a response on any forum ever before.
After learning a few different languages from documentation, books, etc., I have learned to only trust those who use the language everyday. I rarely take examples from a book or documentation without first consulting a forum such as this. Although, comparing the KiXtart manual with your responses, I find KiXtart's reference to be better than most.
I have one more question though. I have not been able to find the answer in several searches so far. How would I include a line break and a hyperlink within a message box?
Because there's an error in line 24 of your script. You did not post the complete script. KiXtart has a build-in LOGOFF function, use it! In case of a simple YEs/NO you only need to test for one condition, thus an IF-ELSE-ENDIF is sufficient. Why do you log them off in either case, anyway?
It is one of those corporate "emergencies" and the higher powers that be are "requesting" that there be a pop-up only allowing users to log in to the network if they agree to the e-mail and internet policy. I am sure you know what I mean.
$message = "Internet and e-mail policy text" + @CRLF + @CRLF + "Do you accept the Internet and E-Mail Policy?" $title = "Window Title" $Selection = MessageBox($message,$title,4096+4+48+256,300) If $Selection = 7 ; log user off RC = LogOff(1) endif
[ 18. June 2003, 22:06: Message edited by: sealeopard ]
Argh... Does the Logoff() function just not work in Win9x?
The script still does the same thing. If you click "No", the login script windows simply close. The login dialog box doesn't reappear, and no other errors occur. In order to login after that, you need to reboot the system. We have the necessary DLL's and EXE's mapped in the login script, but I also have them loaded into the Win9x machine as well now but it didn't make any difference.
Thank you all for all of you wonderful input. This is great. We have concluded that this particular method is not Win98 compliant. Win2k+ works just fine with this script. I appreciate the time and effort from you all.
Microsoft can't make Windows 9x shutdown properly themselves. Why do you think they have so many issues and fixes trying to fix the problem.
Many, many things in Windows 9x can prevent a shut-down
Try some of the mentioned methods or maybe even try setting a Task Schedule based on their answer that will allow the logon script to complete, but will then shut down the PC in something like 5 minutes. That way the logon processes won't be the cause of why it won't shut down or log off.
NOTE: Just an FYI, this is NOT a very descriptive title for your post. Please try to use a better description of the issue when posting.
[ 21. June 2003, 03:40: Message edited by: NTDOC ]
That looks like it might work, but I won't be able to try it until next Wednesday morning. Sorry that my thread has the title it does. At the time, it seemed to be appropriate.