Possible Duplicate:
Setting and getting windows environment variables from the command prompt?
Is there any way to set permanently set an environment variable system wide from the command line in Windows?
something like
>systemset newVar=foo
or a file to edit would work well too.