Hi,
If you want to do it manually it's quite easy, right click My Computer and
select the Advanced tab. There's a button called Environment Variables.
There are 2 sets of variables (including Paths), one for the system and one for
the current user - obviously you need to think about which one to change.
If you need to automate it, it's stored in the registry but it's far too early
for me to look for it unless you say you need it ;-).