Uwe Sieber said:
This tool (c't deveject) works with drives only that have
a drive type DRIVE_REMOVABLE. The are some USB flash drives
and lots of USB hard drives that have DRIVE_FIXED.
And it is written for Windows 2000. Under XP it reports
always success even when it failed because Microsoft has
changed the API.
My tool works better in most cases
http://www.uwe-sieber.de/files/removedrive.zip
Greetings from Germany
Uwe
This sounds interesting. I put it to the test by doing this:
1. Determine the name of the USB device I wish to
disconnect, using the "Safe Removal dialog". It is
"USB Mass Storage Device".
2. Attempt to disconnect it with this command:
deveject -EjectName:"USB Mass Storage Device"
DevEject 1.0 2003 c't/Matthias Withopf
Ejecting 'USB Mass Storage Device'
[USB\VID_10D6&PID_1000\5&1719D762&0&1]...ok.
1 device(s) ejected.
3. Unplug the USB device, plug it back in again, ensure
that Windows recognises it.
4. Attempt to disconnect it with this command:
removedrive "USB Mass Storage Device"
RemoveDrive V0.8 - removes removable drives
Freeware by Uwe Sieber -
www.uwe-sieber.de
Removing Device 'USB Mass Storage Device'Device not found!
failed
Either removedrive.exe has some teething problems or
my WinXP Professional installation is one of those cases
where deveject.exe works better than removedrive.exe.