USB Device Removal - command prompt

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Is there something that can be run from the command line to disconnect a usb
device? Instead of having to click on the icon in the taskbar, then select
which one you want to disconnect.

Thanks for any info,
Regards,
Dan.
 
John John said:
RUNDLL32 SHELL32.DLL,Control_RunDLL hotplug.dll

John



Thanks for the reply. Is there a way to do it for a specific device? So I
don't get that dialog?

Cheers,
Dan.
 
Probably, but I don't know the syntax to call & unplug the specific
device. Once dismounted you can unplug the removable drive so there may
be another command that you could use instead.

John
 
Is there something that can be run from the command line to disconnect a usb
device? Instead of having to click on the icon in the taskbar, then select
which one you want to disconnect.

See DevEject 1.0 2003 c't/Matthias Withopf; get via
<http://www.jsiinc.com/SUBQ/tip8400/rh8496.htm> which points to
<ftp://ftp.heise.de/pub/ct/listings/0316-208.zip>.

Usage: deveject
-EjectDrive:<Drive>|-EjectName:<Name>|-EjectId:<DeviceId> [-v] [-Debug]

Note that the command line switches are case sensitive.
 
Back
Top