标签:
var WScriptShell=new ActiveXObject("WScript.Shell"); var EnvironmentSet = WScriptShell.Environment("system"); EnvironmentSet("变量")="变量的值"; //添加 //EnvironmentSet.Remove("变量"); //删除
系统环境变量在注册表中的位置:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
标签:
原文地址:http://www.cnblogs.com/dgx/p/5491492.html