It’s not that hard to set environment variables for a current (dos) session.
But sometimes you want to set or update variables permanently, e.g. the Path variable.
Windows 7 has a nice built-in tool called “setx” to do these sort of things (and more).
setx /M PATH "%path%;c:\bla"
Where /m makes it system-wide instead of the current user.