如何确定一台机器物理上是否有一个串行端口? [英] How to determine if a machine physically has a serial port?
本文介绍了如何确定一台机器物理上是否有一个串行端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以尝试打开它,但是如果它被另一个程序使用,我会得到一个错误,我需要能够将这种情况与计算机上没有串行端口的情况区分开。
I could try to open it, but if it is use by another program I will get an error and I need to be able to distinguish that case from the case where the machine physically has no serial port.
有什么想法吗?
推荐答案
您可以使用WMI。看看我的旧帖子
You can use WMI. Have a look at my old post
这篇关于如何确定一台机器物理上是否有一个串行端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文