中国DOS联盟

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

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

中国DOS联盟论坛
现在时间是 2026-08-11 14:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [求助]请教安装网络服务协议命令 查看 752 回复 5
楼 主 [求助]请教安装网络服务协议命令 发表于 2009-03-15 08:10 ·  中国 江苏 南京 电信
初级用户
积分 55
发帖 25
注册 2007-05-11 21:41
19年会员
UID 88224
性别 男
状态 离线
现在有inf和sys文件.
试过rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 %SystemRoot%\inf\命令,好像没有安装成功.我折腾半天了...先谢谢了...
2 发表于 2009-03-15 11:23 ·  中国 江苏 南京 电信
初级用户
积分 55
发帖 25
注册 2007-05-11 21:41
19年会员
UID 88224
性别 男
状态 离线
没人理啊..无54了....
3 发表于 2009-03-15 15:07 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
积分 1,488
发帖 1,357
注册 2006-05-20 12:00
20年会员
UID 55770
状态 离线
有兴趣可以下一个snetcfg.exe

snetcfg.exe 的使用方法

命令行下执行:snetcfg.exe /help
看看不就清楚了,超简单的英文都是,查字典也查出来了^_^
给你贴上大概翻译了一下,具体的自己根据想实现的功能摸索一下吧,
搞程序探索精神一定要有滴~~
//第一种格式:安装
snetcfg [-v] [-l <full-path-to-component-INF>] -c <p|s|c> -i <comp-id>
where,
-l provides the location of INF
//指定INF文件的完整路径
-c provides the class of the component to be installed
p == Protocol, s == Service, c == Client
//指定组件类型,P=协议,S=服务,C=客户端
-i provides the component ID
//指定组件ID

The arguments must be passed in the order shown.
//参数必须按指定顺序排列

Examples: //例子自己看吧
snetcfg -l c:\oemdir\foo.inf -c p -i foo
...installs protocol 'foo' using c:\oemdir\foo.inf

snetcfg -c s -i MS_Server
...installs service 'MS_Server'

OR
//第二种格式:查看指定组件
snetcfg [-v] -q <comp-id>
Example:
snetcfg -q MS_IPX
...displays if component 'MS_IPX' is installed

OR
//第三种格式:卸载
snetcfg [-v] -u <comp-id>
Example:
snetcfg -u MS_IPX
...uninstalls component 'MS_IPX'

OR
//第四种格式:显示所有指定类型组件
snetcfg [-v] -s <a|n>
where,
-s provides the type of components to show
a == adapters, n == net components
Examples:
snetcfg -s n
...shows all installed net components


OR
//第五种格式:显示包含某组件的路径
snetcfg [-v] -b <comp-id>
Examples:
snetcfg -b ms_tcpip
...shows binding paths containing 'ms_tcpip'


General Notes:
-v turns on the verbose mode //这个不大清楚,是开启长文件名吧,你自己试下应该就明白了
-? Displays this help
4 发表于 2009-03-15 15:08 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
积分 1,488
发帖 1,357
注册 2006-05-20 12:00
20年会员
UID 55770
状态 离线
5 发表于 2009-03-15 21:37 ·  中国 江苏 南京 电信
初级用户
积分 55
发帖 25
注册 2007-05-11 21:41
19年会员
UID 88224
性别 男
状态 离线
非常感谢...XP自带的有没有这样的工具啊?
6 发表于 2009-03-15 22:01 ·  中国 江苏 南京 电信
初级用户
积分 55
发帖 25
注册 2007-05-11 21:41
19年会员
UID 88224
性别 男
状态 离线
Originally posted by yishanju at 2009-3-15 03:08 PM:
添加删除协议的工具snetcfg.exe
http://www.cn-dos.net/forum/viewthread.php?tid=45309&fpage=1&highlight=snetcfg

没成功,兄弟有QQ吗?加一个..123482995
论坛跳转: