Thursday, June 14, 2007

Set environment variables

Setx - Set environment variables

Although this command, SETX, does not appear to work in XP SP2, there is a tidbit of useful info near the page end.

To add a machine variable to the environment, run the following as an admin from the command line:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v /d "some data"

No comments: