There is no @USERNAME macro.

Your script references @USERID though.

Try it like this:



USE X: "\\ncnt5crpsrv1\" + @USERID + "$$"



No sure if this macro works properly on Win9x if you are not in the logon process.

Do not mess with the LMSCRIPT emulation.
_________________________
Home page: http://www.kixhelp.com/hb/