利用wmic修改是直接生效的:(e:\tools 是新添加的目录)
wmic ENVIRONMENT where “name=’path'” and username=”” set VariableValue=”%path%e:\tools”
修改系统PATH不用重启
利用wmic修改是直接生效的:(e:\tools 是新添加的目录)
wmic ENVIRONMENT where “name=’path'” and username=”” set VariableValue=”%path%e:\tools”