Windows sets Environment variables from values stored in the Registry for each process independently.
However, there is a tool in the Windows XP Service Pack 2 Support Tools named setx.exe that allows you to change global Environment variables from the command line.