看下面的代码!你会理解我想要的东西:
@echo off
setx myname king
echo %myname%
setx myname Queen
echo %myname%
输出:
king
king //Why did it not change?? whats wrong? and how to change?
我甚至在删除varable之后尝试过:
REG delete HKCU\Environment /F /V myname
但输出仍然没有改变!!