中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-10 09:59
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,255 会员排行
DOS批处理 & 脚本技术(批处理室) » 添加path的程序
可打印版本  911 / 7
第1楼 defrag 发表于 2008-07-27 15:36
中级用户 发帖 570 积分 456
添加path的程序
用起来还可以
第2楼 defrag 发表于 2008-07-27 15:47
中级用户 发帖 570 积分 456
添加append的程序
@echo off
append|find /i "%1">nul
if not errorlevel 1 goto end
append|aplsr %1>nul

需要的文件:http://www.fs2you.com/files/7e654ba6-5bae-11dd-b99f-0014221b798a/
第3楼 tireless 发表于 2008-07-27 16:50
银牌会员 发帖 1,122 积分 2,025
Windows Resource Kit Tools 里有个这样的工具 pathman.exe (6.5K)
USAGE:

/as path]
Adds the semicolon-separated paths to the system path.

/au path]
Adds the semicolon-separated paths to the user path.

/rs path]
Removes the semicolon-separated paths from the system path.

/ru path]
Removes the semicolon-separated paths from the user path.


下载链接: http://clip2net.com/page/m316/259772

[ Last edited by tireless on 2008-7-26 at 08:55 PM ]
第4楼 HAT 发表于 2008-07-27 19:57
版主 发帖 5,017 积分 9,023
用批处理不是也可以实现吗?用这个第三方工具干吗?
第5楼 tireless 发表于 2008-07-27 23:45
银牌会员 发帖 1,122 积分 2,025
这个?
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;c:\test"

执行速度很慢啊
第6楼 pusofalse 发表于 2008-07-28 01:39
银牌会员 发帖 646 积分 1,604
Originally posted by tireless at 2008-7-27 11:45 PM:
这个?
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;c:\test"

执行速度很慢啊


又学到了新方法~^_^
第7楼 dslz666 发表于 2008-07-28 15:06
中级用户 发帖 117 积分 233
Originally posted by tireless at 2008-7-27 11:45 PM:
这个?
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;c:\test"

执行速度很慢啊



这样好呀,不用借助第三方工具,谢谢分享
第8楼 nafan 发表于 2008-11-13 15:59
初级用户 发帖 21 积分 22
用这个程序难道有什么另外的想法?
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023