PC Review


Reply
Thread Tools Rate Thread

how to detect insertion of USB stick ?

 
 
calderara
Guest
Posts: n/a
 
      28th Oct 2008
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
 
Reply With Quote
 
 
 
 
tcomer
Guest
Posts: n/a
 
      30th Oct 2008
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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to detect insertion and removal of USB Drive Jeff Microsoft C# .NET 1 23rd Nov 2007 10:25 AM
howto disable file explorer popup on usb-stick insertion Lukas Ruf Windows XP Basics 3 7th Sep 2007 08:04 AM
How to detect removeable drive insertion Steve Marshall Microsoft VB .NET 1 28th Apr 2006 06:40 AM
c#.net detect media card insertion sanjana Microsoft C# .NET 4 8th Aug 2005 02:08 PM
Is it possible to detect storage card insertion? Bob Nicholls Microsoft Dot NET Compact Framework 3 4th Feb 2004 01:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 AM.