如何让打印机物理连接 [英] How to get the printers connected physically
本文介绍了如何让打印机物理连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将打印机物理连接到计算机
解决方案
您可以使用WMI来获取所有打印机 [ ^ ]。 端口和本地属性可用于查找本地连接的打印机。以下是一个快速示例,如何列出它们: http://include.wutils.com/wmi/ROOT%5CCIMV2/CIM_ManagedSystemElement/CIM_LogicalElement/CIM_LogicalDevice/CIM_Printer/Win32_Printer/cs-samples.html [ ^ ],您只需要优化查询。
How to get the printers connected physically to the computer
解决方案
You can use WMI, to get all printers[^]. The Port and the Local properties can be useful to find the locally connected printers. And here is a quick sample, how to list them: http://include.wutils.com/wmi/ROOT%5CCIMV2/CIM_ManagedSystemElement/CIM_LogicalElement/CIM_LogicalDevice/CIM_Printer/Win32_Printer/cs-samples.html[^], you need just to refine the query.
这篇关于如何让打印机物理连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文