手机
当前位置:查字典教程网 >软件教程 >系统工具 >使用命令行安装驱动程序的方法
使用命令行安装驱动程序的方法
摘要:看了一下CelluarEmulator的内容,除了应用程序,还需要安装一个虚拟硬件的驱动,名为XPVCOM。安装完毕后,会出现一个XPVCO...

看了一下Celluar Emulator的内容,除了应用程序,还需要安装一个虚拟硬件的驱动,名为XPVCOM。安装完毕后,会出现一个XPVCOM port。这个虚拟硬件将接受Device Emulator的AT指令,模仿手机的相应功能。

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

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

C:UsershhuDesktopWMEDrivers>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 "rootXPVCOM"

devcon rescan

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

……

[Standard]

;

;

%XPVCOM.DeviceDesc%=XPVCOM_Device, rootXPVCOM

……

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

【使用命令行安装驱动程序的方法】相关文章:

UxStyle破解系统主题使用方法

用驱动精灵怎么更新显卡驱动以及更新显卡驱动出现蓝屏的解决方法

XP电脑无法关机的解决方法

如何使用加速人生一键清理残留后台运行程序

菜鸟必看 一步一步教你安装驱动程序

OS X 10.10 Yosemite 制作USB启动安装盘的方法

hao123桌面版突然消失被360安全卫士误清理的解决方法

借助命令行或驱动人生查看电脑系统的安装日期

Windows AIK(自动安装包)下载及安装方法

使用鲁大师时出现乱码现象的解决办法图文介绍

精品推荐
分类导航