My pen drive is plugged into windows 7 and it is always used by my program which uses xcopy to backup. So when I try to eject it using eject button in taskbar. I get this error "This device is currently in use. Close any programs or windows that might be using the device, and then try again" .
Is there any way to make changes in windows settings (e.g. changes in registry or policy etc. ) to force eject it without showing this error ?