当我的闪存驱动器连接到其他PC时,如何使VB.NET应用程序向我发送消息。 [英] How can I make VB.NET application that message me when my flash drive is connected to other pc.

查看:76
本文介绍了当我的闪存驱动器连接到其他PC时,如何使VB.NET应用程序向我发送消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的pendrive / flash驱动器连接到其他人的电脑时,我想让应用程序给我发消息。请帮助我或给我任何消息来源,以便我能找到相关的东西。



我尝试过:



i对它进行研究但没有任何帮助

i want to make the application that message me when my pendrive/flash drive connect in other's pc. please help me or give me any source so i can find something about it.

What I have tried:

i research on it but nothing helpfull

推荐答案

你不能这样做。



每当插入到另一个系统(自动启动)时,它将要求存储在驱动器上的应用程序启动(默认情况下通常会被拒绝)(会有一条消息询问是否允许执行)。



然后这个应用程序需要在线访问,也可能被拒绝。



最后,这样的应用程序依赖于操作系统(Windows应用程序不能在Linux或Mac系统上运行)。



唯一独立于系统的解决方案可能是使用自动启动加载存储在驱动器上的HTML页面,以便使用系统上的默认浏览器显示页面。然后,此HTML页面可能具有您拥有的域的外部链接(例如,图像),以便您可以检查服务器的日志文件以访问该链接。



但是,再次,这将要求插入驱动器的人允许通过自动启动打开HTML页面,并且他的系统实际上是在线。
You can't do such.

It would require that an application stored on the drive is started whenever it is plugged into another system (auto start) which is usually denied by default (there will be a message asking if execution is allowed).

Then this application needs online access which might be also denied.

Finally, such an application is operating system dependant (a Windows application will not run on Linux or Mac systems).

The only system independent solution might by loading a HTML page stored on the drive using auto start so that the page is shown with the default browser on the system. This HTML page might then have an external link (e.g. to an image) to a domain owned by you so that you can check the server's log file for access to that link.

But again, such would require that the person inserting the drive allows opening the HTML page by the auto start and that his system is actually online.


检测usb insert .net - Google搜索 [ ^ ]。


这篇关于当我的闪存驱动器连接到其他PC时,如何使VB.NET应用程序向我发送消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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