USB Disk Ejector

Current Version:

A program that allows you to quickly remove drives in Windows. It can eject USB disks, Firewire disks and memory cards. It is a quick, flexible, portable alternative to using Windows’ “Safely Remove Hardware” dialog.

It will work on any version of Windows from XP onwards, that includes:

  • Windows XP, Vista, 7, 8, 10 (32 and 64 bit)
  • Windows Server versions are untested by me but have been reported to work.


What makes this so useful?

It is quick. Rather than clicking through the “Safely Remove Hardware” dialog you can very quickly remove drives or card media. You can even create shortcuts or hotkeys to eject a drive.

It is simple. The program is designed to be easy to use and its advanced options are hidden so that they dont get in the way.

It is portable. It can be stored and used on a removable device like a pen drive. It can even eject the disk that it is running from. It doesnt require administrator rights and doesnt need installing.

It is flexible. There are many features that can be customised such as hotkeys, positioning, notifications and post-eject actions.

It can be run as a command line program. The command line options are very flexible, they can be used to:

  • Eject the drive that the program is running from.
  • Eject a drive by specifying a drive letter.
  • Eject a drive by specifying a drive name.
  • Eject a drive by specifying a mountpoint
  • Eject a drive by specifying a partial drive name.

So you could setup a hotkey, desktop shortcut or bat file to eject a drive. Or if you use a menu such as PStart or the Portable Apps launcher you could use the command line switches so that with one click the menu will exit, the program will run and the drive will be ejected. See the ‘Command Line’ section in the readme for more information.

It can eject disks when Vista cant. On Windows Vista, disks often cant be ejected because they have an open explorer window. Other versions of Windows will close any explorer windows belonging to a disk but Vista often doesnt – so USB Disk Ejector closes it before ejecting.

It can eject disks when Windows sometimes cant. If any applications are running from a disk then Windows wont be able to eject it. USB Disk Ejector can detect and auto-close any applications running from the disk before ejecting. Please note this closes applications that were launched from the disk not applications that have opened a file on the disk. See the limitations section in the readme for more information.

It is small. Less than 1.5MB (when UPX compressed)

It is open source. All source code can be found on my Github.

Read the ReadmeDownload it hereSource code