使用命令行安装驱动程序的方法

所属分类: 软件教程 / 系统工具 阅读数: 1960
收藏 0 赞 0 分享
看了一下Celluar Emulator的内容,除了应用程序,还需要安装一个虚拟硬件的驱动,名为XPVCOM。安装完毕后,会出现一个XPVCOM port。这个虚拟硬件将接受Device Emulator的AT指令,模仿手机的相应功能。

    很简单,安装这个虚拟硬件的驱动即可。查找驱动然后定位到xpvcom.inf。问题在于我想把这些工作打包,全部自动执行,不用点来点去。想起了以前解决OSD的ACPI问题时用的工具,devcon。

    DEVCON是设备管理器的命令行版本,可以查看其帮助:

C:\Users\hhu\Desktop\WME\Drivers>devcon /?
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 instanc
e 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 I
D.
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 instanc
e 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).

    为了安装这个虚拟硬件,只需要运行以下命令行:

devcon install xpvcom.inf "root\XPVCOM"
devcon rescan

    你要问“root\XPVCOM”设备描述符哪里来的?打开inf文件就能看到

……

[Standard]
;
;

%XPVCOM.DeviceDesc%=XPVCOM_Device, root\XPVCOM
……

    命令行安装一个驱动,就这么简单。

更多精彩内容其他人还在看

iOS Toolkit如何安装?iOS Toolkit安装方法

iOS Toolkit是一款IOS系统修复工具,用户使用该软件可以修复iOS系统在各种问题中恢复正常,包括陷入恢复模式、DFU模式、白苹果标识、黑屏、循环启动等问题,本文为大家带来的是该软件的安装教程,需要了解的朋友可以阅读下文
收藏 0 赞 0 分享

如何用NLITE来定制您的xp系统(nite教程)

nlite是一款Windows系统瘦身工具,用它给系统安装盘瘦身是当前的热门话题。利用Nlite给系统安装盘瘦身后,可以在配置较低的老机器上顺利安装和运行Win XP及2003等系统,可以让一些老机器重新焕发光彩
收藏 0 赞 0 分享

winsetupfromusb怎么用?winsetupfromusb使用方法简介

winsetupfromusb是一款U盘启动盘制作工具,winsetupfromusb怎么用?是很多新用户都想知道的问题,今天小编就给大家简单介绍一下winsetupfromusb使用方法,希望对大家有所帮助
收藏 0 赞 0 分享

msiblast怎么用?msiBlast NI卸载工具使用方法简介

msiblast怎么用?是很多新用户都想知道的问题,msiblast虽然是英文页面,但使用方法并不复杂,今天小编就给大家简单介绍一下msiBlast NI卸载工具使用方法,需要的朋友欢迎借鉴
收藏 0 赞 0 分享

数据恢复软件哪个比较好用?六款非常好用的电脑数据恢复软件推荐

目前网络上有非常多的数据恢复软件供用户选择,但不同版本的数据恢复软件使用功能不一,且免费的版本较少,本文为大家推荐介绍了几款比较好用的数据恢复软件,需要的朋友可以前来阅读下载
收藏 0 赞 0 分享

腾讯魔镜壁纸在哪里?腾讯电脑管家魔镜壁纸位置及使用方法介绍

近日,腾讯电脑管家全新升级“桌面整理-魔镜壁纸”功能,那么,腾讯魔镜壁纸在哪里?魔镜壁纸怎么用呢?今天小编就给大家带来腾讯电脑管家魔镜壁纸位置及使用方法介绍,需要的朋友快去了解一下吧
收藏 0 赞 0 分享

adobe creative suite cleaner tool怎么用?Adobe卸载清理工具使用方法介绍

adobe creative suite cleaner tool怎么用?是很多新用户都想知道的问题,今天小编就给大家带来详细的Adobe卸载清理工具使用方法介绍,并提供windows版和mac版的adobe creative suite cleaner tool免费下载
收藏 0 赞 0 分享

赤兔Bitlocker分区恢复软件常见问题及解决方法

赤兔Bitlocker分区恢复软件是一款专门恢复误操作、重装系统等原因造成的Bitlocker加密分区丢失、Bitlocker加密分区无法打开的数据恢复软件,在使用这款软件时会遇到一些问题,本文整理了最常见的问题并作出解答
收藏 0 赞 0 分享

winstep xtreme怎么破解?Winstep Xtreme17安装破解图文详细教程

最近,很多网友问小编winstep xtreme怎么破解?winstep xtreme是一款很好用的Windows电脑桌面美化工具,今天小编就给大家带来Winstep Xtreme17安装破解图文详细教程,并附有winstep xtreme破解版下载,需要的朋友欢迎借鉴
收藏 0 赞 0 分享

短信猫如何通过超级终端进行配置和调试?

短信猫是常用的短信发送设备,支持移动联通电信等运营商,今天我们就来说说短信猫如何通过超级终端进行配置和调试?如果你遇到过短信猫死机的问题,那就可以按照这个方法试试哦
收藏 0 赞 0 分享
查看更多