我有一台带有 2 个 PCIe 视频卡的 64 位 Windows 7 机器,我希望能够通过 Python 脚本以编程方式理想地启用和禁用其中一个。有什么建议么?
问问题
1780 次
1 回答
1
我找到了一个名为 DevCon 的 MS 工具,它是 WDK 工具包的一部分,可以从这里下载为 640 MB ISO 的一部分...
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800
文档可在...
http://msdn.microsoft.com/en-us/windows/hardware/gg487458
这会在 C:\WinDDK\7600.16385.1\tools\devcon\ 中安装 3 个 devcon 应用程序副本
amd64/devcon.exe : Win7 64-bit
i386/devcon.exe : WinXP / Win7 32-bit
ia64/devcon.exe : Itanium 64-bit processor
每个 DevCon 本身只有 ~70kB,需要从命令行以管理员身份运行(在 Windows-7 中,右键单击 cmd.exe / 以管理员身份运行)。
从此工具中,您可以找到设备的状态、启用和禁用
例如从 dos 提示符
> devcon resources =display // show list of display adapters
> devcon status xxxx // show status of adapter xxxx
> devcon disable xxxx // disable adapter xxx
于 2011-11-24T14:27:09.673 回答