Quote:

Yes Windows 9x does have more limitations in KiXforms then NT/2000/XP/2003 does and is documented in the helpfile for KiXforms.

Also, as Lonkero mentioned, remove the GOSUB and just leave the command such as UDFTASK()




OK, did that
Quote:


You're also doing a REGSVR32 every logon (which requires the user to be a local Admin on the system, but don't see you doing such a check)
I would use another method to perform that task so it is not done every time.




Yeah I know about that, I need to first logon with admin privs or the scrip will fail, but to check if you have local admin privs, you need a kxpcp service and I don't want to implement that in the script (lots of clients and companies use this script, if I update this script, they replace only this part)
Quote:


You don't need to CD a simple SHELL to the REGSVR32 should be sufficient.

Perhaps use the @DOS or @ProductType if you need or want to do something for 9x that you do or don't want to do for NT or newer type systems.

You don't appear to centrally log any type of failure for user logons, so I don't see any way of knowing of such an error until a user calls in (if they ever call in).

I'd recommend logging any failures (that don't crash KiXtart) so that you know the user or system is not properly processing the script. Then you can review the user account or the system to see what is causing an issue when other users or systems don't havwe an issue with the script.




I do log stuff (check the UDF LogError() ) of the users login to a share (errors, logon times per user and computer) just no logging of the progress of the script. The script itself never crashes, when the script is done, most of the time it crashes a few seconds after the script has completed.

Thanks for commenting the code, it's very useful. I'll make a progress 'logging' feature. Maybe after every GOSUB routine, write a line to a text file and the last line of the script will be to delete the textfile, so if it is there the script has crashed and I can see in which routine it crashed.


Edited by Collin (2004-05-12 09:39 AM)
_________________________
Ruud is my hero