On Oct 28, 9:42*am, calderara <calder...@discussions.microsoft.com>
wrote:
> Dear all,
>
> For one on my customer application I would like to implement the following
> facilities:
>
> As soon as USB stick is inserted I need to run a small application which
> will take care of copiing predifined folders and store then at a particular
> place on the USB key.
>
> For that I need to:
>
> 1- *identify when a key is plug in
> 2- start an autorun from the key which will request to start the backup
> procedure
> 3- the running application will copy folder to USB
>
> How can I perfome such operation ?
> Especially the detection of USB key insertion and starting the aurotun
>
> thnaks for help to point me to some tips
> regards
> serge
Check out this link. I haven't gotten a chance yet to sift through the
code but I think it may point you in the right direction. I hope
you're familiar with Win32.
http://www.codeproject.com/KB/system/DriveDetector.aspx