Click here to Skip to main content
15,888,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,
i really wonder how do i run an application when my flash drive was detected. because i want to detect file autorun.inf to prevent some virus attack. i am familiar with with autorun.inf but some of my friend they don't know about it and they always attack by virus when they use their flash drive. so i want to code a application for them to detect it.

thanks for your reply

best regard
Posted
Updated 9-May-11 17:51pm
v2

1 solution

Why would you be using VB6 to do this ? It's out of date and obsolete. It was always hideous.

If you were to use a real programming language, like C# or VB.NET, then you could use this code:

http://www.dreamincode.net/forums/showtopic135795.htm[^]

But even detecting the event doesn't necessarily mean you can stop it running. Your friends should not trade porn and warez using their flash drives, then they would not have an issue. Stopping auto run from working is also a good option, you could configure that for them.
 
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