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

所属分类: 软件教程 / 系统工具 阅读数: 1924
收藏 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
……

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

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

如何创建鲁大师一键释放内存的桌面图标?

如何创建鲁大师一键释放内存的桌面图标?我们在使用电脑,一般安装新的软件之后,都会设置桌面图标,以便我们使用,那么,我们现在就尝试用鲁大师来设置桌面图标,需要的朋友可以参考下
收藏 0 赞 0 分享

CrossOver linux版如何在Fedora中安装?Fedora中安装CrossOver的方法介绍

CrossOver linux版一款在linux中运行的支持安装windows软件的程序,本文中介绍的是在Fedora中安装该软件的方法,感兴趣的朋友可以阅读本文参考一下
收藏 0 赞 0 分享

CrossOver中如何重置DPI?使用CrossOver重置DPI的方法

Crossover是帮助用户在Mac或者linux系统上运行windows软件的,因此该软件有mac版和linux版两种,本文中介绍的是在该软件内重置DPI的方法,有需要的朋友可以阅读本文参考一下
收藏 0 赞 0 分享

画图工具怎么创建圆角矩形对话框?

画图工具怎么创建圆角矩形对话框?电脑自带的画图工具想要制作一个对话框图形,该怎么制作这个图形呢?下面我们就来看看详细的教程,需要的朋友可以参考下
收藏 0 赞 0 分享

画图工具怎么绘制圆形并标注圆心?

画图工具怎么绘制圆形并标注圆心?画图工具中想要绘制一个圆形并标记圆心,该怎么绘制圆形呢?下面我们就来看看详细的教程,需要的朋友可以参考下
收藏 0 赞 0 分享

Ashampoo UnInstaller 7如何激活安装 Ashampoo UnInstaller 7激活安装图文教程

Ashampoo UnInstaller 7是一款系统清理和卸载的软件,那么他究竟怎么激活安装呢,下面小编为大家带来Ashampoo UnInstaller 7激活安装图文教程,希望对大家有所帮助
收藏 0 赞 0 分享

恒星数据恢复工具(DataRecovery)怎么激活 快速激活图文教程

Stellar Data Recovery Premium/Technician 多语言版激活教程,详细大家对恒星数据恢复工具都是非常的喜欢,但是此款软件需要激活才能获得全部的使用权限,那么怎么激活此款软件呢?下面还有不知道的用户一起看看吧
收藏 0 赞 0 分享

Smarty Uninstalle4 智能卸载工具 免费安装及激活教程

Smarty Uninstaller是一款专业的智能卸载工具,软件功能强大,使用方便,本软件安装可以试用30天,那如何可以一直免费使用呢?今天小编小带大家来学习一下,本软件的激活方法,感兴趣的朋友不妨阅读下文内容,或许有所帮助哦
收藏 0 赞 0 分享

SystemSwift怎么激活?SystemSwift安装激活详细图文教程

今天小编为大家带来的是SystemSwift英文安装版,附带的注册机可以完美成功激活软件,想要了解具体操作的朋友们,不妨阅读下文内容,或许有所帮助哦
收藏 0 赞 0 分享

暴风一键永久激活 (windows/office激活工具)使用教程

暴风激活工具是一款专业实用的Windows激活工具和Office激活工具。支持Windows系列和office系列,支持64位和32位双系统,本文为大家带来的是该软件的使用教程,需要的朋友可以阅读下文
收藏 0 赞 0 分享
查看更多