使用命令操作驱动

131 篇文章 1 订阅
使用命令操作驱动。

DOS命令,具体的细节我没有时间研究。希望大家有空研一下。

a.显示所有硬件的设置详细信息。
格式:devcon hwids *
显示的信息比较多,建意输出到一个文本文件当中。
devcon hwids * >>devlist.txt

b.-r参数的作用(if specified will reboot machine after command is complete, if needed.)[命令完成后要重启机器。{可能翻译不准。}]



c.查找新硬件。
devcon  rescan

b.安装驱动
命令格式:devcon [-r] install <inf> <hwid>
<inf> 一个inf文件,用于安装硬件。
<hwid> 安装设备的ID
示例:DEVCON -R INSTALL %SYSTEMROOT%/INF/netadapter.inf *VMnetAdapter1
这条命令能重装驱动。(在一个加密批处理中发现。)

不好意思,今天只能讲研究到这里。
你可以使用以下命令来查看详细的参数。
devcon help 命令

详细参数,希望有空翻译一下。
Device Console Help:devcon [-r] [-m://<machine>] <command> [<arg>...]-r if specified will reboot machine after command is complete, if needed.<machine> is name of target machine.<command> is command to perform (see below).<arg>... is one or more arguments if required by command.For help on a specific command, type: devcon help <command>
classfilter          Allows modification of class filters.
classes              List all device setup classes.
disable              Disable devices that match the specific hardware or instance ID.
driverfiles          List driver files installed for devices.
drivernodes          Lists all the driver nodes of devices.
enable               Enable devices that match the specific hardware or instance ID.
find                 Find devices that match the specific hardware or instance ID.
findall              Find devices including those that are not present.
help                 Display this information.
hwids                Lists hardware ID's of devices.
install              Manually install a device.
listclass            List all devices for a setup class.
reboot               Reboot local machine.
remove               Remove devices that match the specific hardware or instance ID.
rescan               Scan for new hardware.
resources            Lists hardware resources of devices.
restart              Restart devices that match the specific hardware or instance ID.
sethwid              Modify Hardware ID's of listed root-enumerated devices.
stack                Lists expected driver stack of devices.
status               List running status of devices.
update               Manually update a device.
updateni             Manually update a device (non interactive).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值