如何从Windows设置环境变量

时间:2015-09-08 16:52:30

标签: windows cmd windows-10

在windows xp,7,8,vista,10等中添加环境变量的方法是什么?

2 个答案:

答案 0 :(得分:1)

  

在Windows 7,8,Vista或XP中。

查找"我的电脑"在桌面或开始菜单中的图标,右键单击它,然后从菜单中选择属性项。 当您看到属性对话框时,单击“环境变量”按钮,然后添加它。

  

在Windows 10或更高版本中,从开始菜单打开cmd。

然后执行此命令" var pendingPromises = []; while (yourConditions) { pendingPromises.push(service.doSomethingAsync()); } Promise.all(pendingPromises).then(function(result) { console.log("all the files were created", result); }); "

答案 1 :(得分:0)

查看或更改环境变量:

Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
Click one the following options, for either a user or a system variable:
    Click New to add a new variable name and value.
    Click an existing variable, and then click Edit to change its name or value.
    Click an existing variable, and then click Delete to remove it.