Quote:

My guess is that you have something wrong elsewhere in your logon script.




I agree. A common cause is unbalanced quotes somewhere earlier in the script.