If I open a CmdPrompt and type
set myvar=foobar
then this environment variable is set only for the time the CmdPrompt exists and is only visible INSIDE the CmdPrompt.
How do I set such an environemnt variable from CmdPrompt (!) but permanently (forever) for
- a certain user
- whole system/computer?
Again: I don't want t use Windows GUI to set the var. Everything should take place from cmdline.
Entering a var value to Registry would be acceptable as well.
How does it work?
Peter
set myvar=foobar
then this environment variable is set only for the time the CmdPrompt exists and is only visible INSIDE the CmdPrompt.
How do I set such an environemnt variable from CmdPrompt (!) but permanently (forever) for
- a certain user
- whole system/computer?
Again: I don't want t use Windows GUI to set the var. Everything should take place from cmdline.
Entering a var value to Registry would be acceptable as well.
How does it work?
Peter