I found it is hard to keep my environment variables sync on different machines. I just want to export the settings from one computer and import to other ones.
I thi
I would use the SET command from the command prompt to export all the variables, rather than just PATH as recommended above.
C:\> SET >> allvariables.txt
To import the variablies, one can use a simple loop:
C:\> for /F %A in (allvariables.txt) do SET %A