ro如何检测笔式驱动器并运行其中的Exe. [英] How ro detect pen drive and run the Exe which is inside it.

查看:95
本文介绍了ro如何检测笔式驱动器并运行其中的Exe.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.

在我的应用程序中,我想检查插入笔式驱动器时检测到该驱动器的代码,并运行笔式驱动器中的exe.如何使用后台工作者执行此任务.

请尽快回复我



谢谢.....

Hello friends.

In my application i want to wright the code which is detect the pen drive when it is inserted, and run the exe which is in pen drive. how to use background worker for this task.

please reply me soon



thanks.....

推荐答案

您尝试谷歌搜索吗?

我刚刚搜索了一下,就想出了这篇不错的CP文章来检测笔式驱动器的插入/移除.

在C#程序中检测USB驱动器的移除 [
Did you try googling?

I just googled and came up with this nice CP article to detect pen drive insertion /removel.

Detecting USB Drive Removal in a C# Program[^]


This could be a starting point for your project and once detected, try and read the drive name and once you know the drive name....you know the path to your *.EXE for the execution ?


这篇关于ro如何检测笔式驱动器并运行其中的Exe.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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