how to detect insertion of USB stick ?

C

calderara

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
 
T

tcomer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top