擅长:python、mysql、java
<p>XP支持工具(可以从XP CD安装)附带一个名为<code>setx.exe</code>的程序:</p>
<pre><code>C:\Program Files\Support Tools>setx /?
SETX: This program is used to set values in the environment
of the machine or currently logged on user using one of three modes.
1) Command Line Mode: setx variable value [-m]
Optional Switches:
-m Set value in the Machine environment. Default is User.
...
For more information and example use: SETX -i
</code></pre>
<p>我认为Windows 7实际上附带了<code>setx</code>作为标准安装的一部分。</p>