中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-22 00:43
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [环境变量] WinXP SP2支持工具包里提取的setx.exe 查看 1,831 回复 6
楼 主 [环境变量] WinXP SP2支持工具包里提取的setx.exe 发表于 2007-03-21 06:59 ·  中国 河北 石家庄 电信
初级用户
积分 99
发帖 41
注册 2007-02-19 03:42
19年会员
UID 79773
性别 男
状态 离线
从WinXP SP2支持工具包里提取的setx.exe

http://zhenlove.com.cn/cndos/fileup/files/setx_xp.zip

用于设置全局环境变量。
SETX: This program is used to set values in the environment
of the machine or currently logged on user using one of three modes.

1) Command Line Mode: setx variable value
Optional Switches:
-m Set value in the Machine environment. Default is User.

2) Registry Mode: setx variable -k hive\key\...\value
Optional Switches:
-m Set value in the Machine environment. Default is User.

3) File Mode: setx variable -f file {-a x,y | -r x,y "string"}
Required Switches:
-f file : Specify file name to use.
-a x,y : Specify absolute coordinates and offset.
-r x,y "string" : Specify coordinates and offset relative to string.
Optional Switches
-d ,:\ etc. : Specify additional delimiters.
-x : Displays file coordinates. Switches -a -r -e ignored!!
-m : Set value in the Machine environment. Default is User.

For more information and example use: SETX -i
本帖最近评分记录 (共 2 条) 点击查看详情
评分人分数时间
lxmxn +2 2007-03-27 00:34
everest79 0 2007-03-27 03:48
量子公民
2 发表于 2007-03-27 00:35 ·  中国 湖北 武汉 电信
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
19年会员
UID 59080
状态 离线

下载收藏了~还有什么好东东哇~~
3 发表于 2007-03-29 09:27 ·  中国 上海 闵行区 电信
新手上路
积分 12
发帖 6
注册 2007-03-14 02:41
19年会员
UID 81650
性别 男
状态 离线
用得着.下载了.多谢楼主厚道
4 发表于 2007-04-14 09:41 ·  中国 湖南 衡阳 电信
新手上路
积分 15
发帖 6
注册 2007-01-03 03:14
19年会员
UID 75302
性别 男
状态 离线
好东西,收藏下来了
5 发表于 2008-04-10 15:03 ·  中国 广东 深圳 电信
初级用户
积分 34
发帖 13
注册 2006-07-20 19:11
19年会员
UID 58929
性别 男
状态 离线
只能增加、更改,但不能删除所增加的变量啊。
6 发表于 2008-04-11 04:46 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
请问这个工具跟直接写注册表有哪些区别?
7 发表于 2008-10-12 17:25 ·  中国 北京 鹏博士BGP
新手上路
积分 2
发帖 1
注册 2008-10-12 16:59
17年会员
UID 128173
性别 男
状态 离线
不错,正在急着找,呵呵











Originally posted by airosp at 2007-3-21 06:59:
从WinXP SP2支持工具包里提取的setx.exe

http://zhenlove.com.cn/cndos/fileup/files/setx_xp.zip

用于设置全局环境变量。
SETX: This program is used to set val ... 
论坛跳转: