how to make a program run when an external device is plugged in???(program run from the computer not an autorun from the flash)

Sounds like a job for native code.

Sorry, this is a Java forum. Native code would be something written by Microsoft for their OS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.