In our login scripts we are setting environment variables when a user first logs in but any command that uses the variable does not get executed until the second login.

IE.- SetL "UPDSERVER=Server"
? "%UPDSERVER%" ;shows nothing on first login


I am aware that env. variables that are set in a script are not available during the current kix session but is there a way to set an environment variable to make it available during that session so we do not have to log on and off again to get all the initial updates (our whole script pretty much uses this variable.)

I have also read to use shell or run with the dos set command but this does not seem to help in displaying the variable either.

[ 23. September 2003, 18:53: Message edited by: sliver ]