如何重启使用C#的usb端口? [英] How to restart usb ports useing C#?
本文介绍了如何重启使用C#的usb端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何重启usb端口使用C#?
我尝试过:
如何重启使用C#的usb端口?
.........................................
__________________________
解决方案
使用WMI弹出媒体,如果你使用谷歌并且你可以轻松转换,有强大的例子。
SushiHangover:PowerShell:Eject local或远程可移动媒体 [ ^ ]
还有许多使用多种语言的WMI的例子,你可以从微软下载WMI Code Creator来玩。
how to restart usb ports useing C#?
What I have tried:
how to restart usb ports useing C#?
.........................................
__________________________
解决方案
Use WMI to eject the media, there are powershell examples if you Google and you can easily convert.
SushiHangover: PowerShell : Eject local or remote removable media[^]
Also lots of examples of using WMI in many languages and you can download the WMI Code Creator from Microsoft to play with.
这篇关于如何重启使用C#的usb端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文