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

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

冰点还原精灵图解安装使用方法(安装,卸载)

冰点还原精灵(DeepFreeze)是由Faronics公司出品的一款系统还原软件,它可自动将系统还原到初始状态,保护系统不被更改,能够很好的抵御病毒的入侵以及人为的对系统有意或无意的破坏
收藏 0 赞 0 分享

VMware vSphere最低内存2G的限制的解决方法

VMware vSphere对硬件的要求比较高,但是对于测试系统来说我们是希望配置要求越低越好,CPU的要求卡死在哪里,必须要64位系统,安装客户机必须要支持VT技术才能安装64位的,这些是没什么好商量的
收藏 0 赞 0 分享

如何给虚拟机提速

虚拟机为计算机提供虚拟硬件,可以在一台电脑上同时运行多个虚拟的操作系统。与此同时,它对电脑的配置要求也比较苛刻(尤其是内存与处理器)。
收藏 0 赞 0 分享

鲁大师设置代理服务器的完整步骤(图文教程)

鲁大师也可以设置代理服务器的
收藏 0 赞 0 分享

鸟叔来袭 你电脑的驱动hold住了吗

本文为如何安装使用驱动人生的教程
收藏 0 赞 0 分享

鲁大师设置开机启动和禁止自动升级的方法

在本文中我们将会看到的是鲁大师如何设置开机启动和禁止自动升级的方法
收藏 0 赞 0 分享

用虚拟机玩游戏的经验总结

本文介绍了如何用虚拟机来玩游戏
收藏 0 赞 0 分享

使用RAM Disk将IE临时文件夹移动到内存,加快IE浏览速度[图文]

今天我们向大家介绍一款非常有意思的软件RAM Disk,它可以将内存变成硬盘使用,是一直比较高级的使用方法。当然硬盘的容量相比内存要大得多,为什么还要将内存当硬盘使用呢
收藏 0 赞 0 分享

DevCon 命令行实用工具可替代设备管理器 devcon.exe使用说明

DevCon 实用工具是一种命令行实用工具,可以替代设备管理器。使用 DevCon,您可以启用、禁用、重新启动、更新、删除和查询单个设备或一组设备。DevCon 还提供与驱动程序开发人员有关、但无法在设备管理器中看到的信息
收藏 0 赞 0 分享
查看更多