Click here to Skip to main content
16,021,294 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hai All


I want to copy the folder or files which are in USB derive when the drive is clicked safe remove . please help me through c#.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-11 23:28pm    
Interesting question, my 5.
--SA

1 solution

You can detect if a USB has been removed using code here[^].

Everytime you detect a removal, copy all files from the USB before it is completely removed.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Feb-11 23:49pm    
And the answer is good, my 5.
So, you answered two questions of OP with the same reference.
Well, I guess implementation will be not easy :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900