2007-06-11

Eject USB device from command line

Do you still click your mouse when you want to eject USB flashcard or external HDD?

Just create following batch file and eject USB device from command line:

%windir%\system32\RUNDLL32 shell32.dll,Control_RunDLL hotplug.dll

2 comments:

Anonymous said...

Thanks for the tip,

In windows 2000 this opens the unplug device control panel, however, i believe it is much more difficult to eject the individual device.

Thanks for the tip, it'll go nicely in my script

Anonymous said...

thank you, it worked:)