set oShell=createobject("WScript.Shell")
set envSystem = oshell.Environment("system")
var = "TEST"
envSystem.item(var) = 1234 'create the env variable
When I use the code above, my variable gets set under the environmental variables under my computer. This is good but I also want to see this variable with the dos set command.
That way if I echo %TEST% from the DOS command line, I should see 1234
Why doesn't the TEST variable show up under set?
Thanks
Mike