Can anyone please let me know if it is possible to set environment
variables with login scripts, and have them usable afterwards?

Basically we need to set a variable, at login time based on network location

i.e.
if (network_address > "80640000" and network_address < "8064FFFF") then
DOS SET CURRENT_SITE = "STBERNARDS"
end

We can see the value is set during login by issuing a WRITE <CURRENT_SITE>
and pause in the script

The issue is that the environment variable is not accessible in the
environment after the login script has processed. We have tried
SET and DOS SET and use MSINFO32.EXE to show the envionment variables

What type of variable should DOS SET create? User or system

Is this an issue with XP?

Any suggestions?!
Thanks

A