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

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

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

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

一键恢复CGI使用图文教程

CGI集备份、恢复、NT6.x安装(自动修复引导)等功能于一身,拥有ghost和ImageX双核心,32/64位自适应,支持GHO/WIM/SWM,支持UEFI+GPT,支持动态磁盘。对无人值守配置文件的支持,使其功能得到了极大的扩展,可实现真正的一键
收藏 0 赞 0 分享

datamax i4308 驱动安装过程(附datamax i4308 驱动 v7.1.4 下载)

datamax I-4308条码打印机的官方驱动程序,支持windows 2000/XP/2003操作系统 驱动安装过程不复杂,就是得注意选择正确打印机型号和端口,不懂可以看看下面的安装方法
收藏 0 赞 0 分享

konica minolta 163打印机Win7驱动使用教程(附konica minolta 163 Win7驱动下载)

konica minolta 163打印机的Win7驱动,同时适用于konica minolta 161/181/211/220,仅支持win7系统,这个驱动的安装很简单,不会安装的朋友可以看看下面的安装方法,希望对你有帮助
收藏 0 赞 0 分享

废弃快捷方式清除工具的使用与介绍

废弃快捷方式清除工具是完美卸载中的一款废弃快捷方式清除工具,能够扫描电脑上隐藏的无用的快捷方式文件,能够一键清理,由于快捷方式时刻都在创建,因此可选择定期处理
收藏 0 赞 0 分享

2345一键重装系统使用教程

【2345一键重装系统】工具是一款全新的一键重装工具,使用无需安装,无需U盘,更不需光盘,系统镜像采用云高速同步下载,真真正正抛掉一切的一键重装,即使无任何电脑基础也能快速重装系统
收藏 0 赞 0 分享

360驱动大师备份目录在哪里以及驱动备份在什么地方

360驱动大师是一个不错的硬件检测软件,不仅可以解决各类驱动出现的问题,同时也是一款可以一键备份可以下载驱动的程序,那么我们备份后的驱动在哪里呢?如何才能找到它呢?本文就来告诉大家360驱动大师备份的驱动在什么地方,以及如何快速准备的找到它们
收藏 0 赞 0 分享

Ghost安装双系统安装使用图文教程

ghost双系统安装工具是一款方便网友安装两个以上系统的辅助工具,能让菜鸟轻松的完成双系统安装工作,让你无需花费时间
收藏 0 赞 0 分享

金山清理大师电脑版怎么样

在Google Play商店,一款名为“清理大师”(Clean Master)的垃圾文件清理免费应用最近在Android手机界引起轰动。这是全球下载量最多的Android优化器,在美国Google Play商店“工具”类应用下排名第一
收藏 0 赞 0 分享

小红伞系统优化功能详细介绍

Avira System Speedup是著名的网络安全公司小红伞开发的一款系统优化工具箱,可以帮助你重新找回原来飞快的系统速度,它能够清理PC中不需要的数据,修复错误并优化您的系统
收藏 0 赞 0 分享

360安全卫士如何卸载 360安全卫士卸载不了怎么办?

你在卸载360安全卫士时候是不是遇到一些问题,下面看看该文的介绍
收藏 0 赞 0 分享
查看更多