Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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
Posted
Updated 17-Jul-17 2:45am

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.
 
Share this answer
 
Comments
Dave Kreskowiak 17-Jul-17 9:15am    
Not to mention that the PC in question would also need the appropriate .NET Framework already installed on the machine for the code to run.
Jochen Arndt 17-Jul-17 9:24am    
I always forget that the .NET stuff does not run standalone (besides building native apps which require Windows 10).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900