I'm trying to return the value of the "Enviroment Path" from the registry.

Does anyone have any sample code that can do this? If you can write to the path as well it would be handy?