473,323 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

how to detect insertion of USB stick ?

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
Oct 28 '08 #1
1 7464
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
Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Viper99 | last post by:
Need to detect (receive notification) for the insertion/removal of PCMCIA devices on Windows 2000/XP in a C# .Net application. Was able to do this in ATL COM app using CWnd::OnDeviceChange().
20
by: Patrick Guio | last post by:
Dear all, I have some problem with insertion operator together with namespace. I have a header file foo.h containing declaration of classes, typedefs and insertion operators for the typedefs in...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
9
by: Paul Steele | last post by:
I am writing a C# app that needs to periodically poll for cdroms and usb storage device insertions. I've looked at the WMI functions but haven't found anything all that useful. The closest is...
4
by: sanjana | last post by:
hi can anyone help me with this i want to write a code in c#.net which detects usb storage and media card insertion can anyone help me with this?? thanx
1
by: Steve Marshall | last post by:
Hi All, Apologies if this has come up before, but how can I set up something that will notify me when a removeable drive (like a USB drive or CompactFlash card) is inserted into its slot? ...
1
Ali Rizwan
by: Ali Rizwan | last post by:
How to print a flexgrid instead of whole form How to set print quality How to detect CDROM, that is the required cd is inserted or not
0
by: Tim Kelley | last post by:
Is there a facility in C# to detect the insertion of an SD or CF card? Thanks
1
by: =?Utf-8?B?Sm9lIE1pbGxlcg==?= | last post by:
I am a developer and a photographer, and I am trying to write a windows service that can recieve a notification that a compact flash card, or an SD card has been insterted into a card reader slot. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.