Prakhar 0 Posted May 29, 2010 Hi fellow autoiteers, I am trying to build an app that copies the data from a USB device to a desired folder of HDD in the computer. But the problem is that when i try to remove the USB stick via "Safely remove hardware"while it is copying , it states that drive cannot be removed a program is accessing it.I want to stop the copying when there is any request for removal.Is there any solution for this. I've already tried $WM_DEVICECHANGE but it is of no use to me. HELP !!! HELP !!!!!!!!!!!!!!!!! [size="5"]"No Pain, No Gain"[/size] Share this post Link to post Share on other sites