如何启用/禁用特定的USB端口 [英] How to Enable/Disable a particular USB port

查看:437
本文介绍了如何启用/禁用特定的USB端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我再次需要帮助.我被要求组装一个应用程序,该应用程序除其他外,必须具有启用条形码的部分.当然,这不是原始规格的一部分,大部分应用程序(98%)已完成.

这是场景;由于数据输入点太多(文本框,组合框和其他类似控件),我希望能够检测是否已插入USB条码读取器,并能够禁用/启用USB条形码读取器.随心所欲的USB端口.

这样的事情有可能吗?

谢谢大家的关注和帮助.

Joe.

Hello Everybody,

I am in need of assistance once again. I was asked to put together an app that among other things, must have a barcode enabled section. Of course, this was not part of the original specs and most of the app (98%) is done.

Here''s the scenario; since there are so many data entry points (textboxes, comboboxes, and other similar controls), I''d like to be able to detect if the USB barcode-reader is plugged in or not, and to be able to disable/enable the USB port where it is at will.

Is such thing even possible?

Thank you all for your interest and help.

Joe.

推荐答案

使用此链接希望对您有所帮助.
> http://stackoverflow.com/questions/6642633/wmi-get-usb- device-description-on-insertion [ ^ ]
use this link hope that its helpful to you.
http://stackoverflow.com/questions/6642633/wmi-get-usb-device-description-on-insertion[^]


你好kaushikjoshi,

谢谢您的建议.乍一看,它似乎仅提供有关已连接设备的信息,而不是提供启用/禁用特定设备的选项,但我将对其进行更深入的研究.也许确实有我需要的东西.

我会告诉您是否有帮助.

最好的问候.

乔.
Hello kaushikjos

Thank you for your suggestion. At a glance it seems to only offer information on connected devices rather than offering the option to enable/disable a particular one, but I''ll look closer into it; perhaps it does have what I need.

I''ll let you know if it was helpful.

Best regards.

Joe.


这篇关于如何启用/禁用特定的USB端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆