使用命令操作驱动。
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).
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).