You need to methodically add print and WriteLog() statements to track the flow of your script. Output values of variables and include else statements for any IF construct.

Win9x also does not execute logon scripts in a DOS windows interactively. You should logoff and logon again to test properly.
_________________________
Home page: http://www.kixhelp.com/hb/