On Jan 22, 4:05*pm, FangQ <fan...@gmail.com> wrote:
> hi
>
> I want to automatically run a program whenever a new USB drive is
> attached to my system, is there a file or registry key to specify this
> behavior? (note: this is like an autorun from the windows side, not on
> the USB drive side)
>
> if there is no such mechanism on windows, and I have to write my own
> program to monitor this event, what message should my program listen
> to?
>
> thanks
>
> Qianqian
Usually, you need a autorun.inf in the main folder of the drive.
Seems to work with hard drives, CDs and DVDs
|