永久设置环境路径 [英] setting the environment path permanently

查看:104
本文介绍了永久设置环境路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个批处理文件永久设置%PATH%环境变量 - 也就是说可以永久增加值的路径(在Windows XP)

I want to make a batch file for setting the %PATH% environment variable permanently - ie adding a value to the path permanently (in Windows XP).

推荐答案

在最近的操作系统,你可以使用 SETX 允许pretty细粒度的控制,作为其中变量被存储。不提供XP,不过,除非你安装<一href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=6ec50b78-8be1-4e81-b3be-4e7ac4f0912d&DisplayLang=en\"相对=nofollow> Windows Server 2003支持工具的。

On more recent OSes you can use setx which allows pretty fine-grained control as for where the variables are stored. Not available on XP, though, unless you install the Windows Server 2003 Support Tools.

这篇关于永久设置环境路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆