A comment to the "addPath" script; When supplying a path with spaces, it throws up.
Example: call addPath "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin"
yields: 'Files' is not recognized as an internal or external command, operable program or batch file.