USB Disk Ejector
By Bgbennyboy
Version 1.2 BETA 2
http://quickandeasysoftware.net
This is a pre-release beta version. Some features may not work correctly.
This readme is not fully up to date and may contain some out of date information related to previous versions of the program.
New in this version:
- Support for Firewire drives/disks
- Support for card readers/flash memory cards (Cards are now ejected not the card reader as happened in previous versions)
- Auto-polling to detect when a new flash card is inserted (windows doesn't do this)
- Double right clicking on a drive opens an explorer window for the disk
- Much better notifications:
- Uses balloon hints in the taskbar for notifications instead of a messagebox
- Much better detection and explanation of the reasons for a failed eject
- Now notifies (via a balloon hint) when an eject is successful
- Automatically closes explorer windows related to the disk before ejecting (this stops a lot of the failed ejects in Vista)
- Can auto-close any applications running from the disk before ejection:
- Can do this using a safe 'ask' method or a brute force unsafe method
- Please note this closes applications that were launched from the ejecting disk. It currently does not close applications launched from elsewhere that have a file from the ejecting drive open.
- Eg - if you launch portable firefox from a usb stick and then eject the stick it should close portable firefox and eject successfully, but if you open a document on the pen drive in Word then it wouldnt be able to detect and close this.
- Hotkey support (can assign a hotkey to eject a drive based on its name or drive letter)
- New 'no disks' found icon - the old face icon apparently scared some people
- Added tray icon:
- Added popup menu to tray icon so you can right click and eject disks, similar to the behaviour of Windows' 'Safely remove hardware' tray icon
- Smart auto-resizing of the program window to accommodate new disks/devices
- Better docking behaviour when the program window is in a corner of the screen
- Added '/NOSAVE', '/CLOSEAPPS' and '/CLOSEAPPSFORCE' command line switches
- Fixed - font size in the options dialog on Windows XP
- Fixed - very rarely a device with many disks/partitions might not have all its disks detected correctly. The detection procedure is now threaded to stop this rare occurance
- Fixed - if the program was set to read only - when it restarted in mobile mode and copied to the temp folder it couldnt delete itself
- Options dialog added - options can now be set and saved. Click on ‘more’ then ‘options’ to show it.
- Added options to:
- Start the program minimized
- Remember the last size of the program window
- Remember the last position of the program window
- Autosize the program window
- Enable/disable balloon notifications
- Close to the system tray
- Minimize to the system tray
- Enable/disable eject notifications
- Use the standard windows eject notifications
- Close the program after a successful ejection
- Minimize the program after a successful ejection
- Control the adding and management of hotkeys
- Control the closure of any programs running from a drive before ejection
- Search for media cards (in card readers)
- Remember this is a beta version, not everything will work fully and correctly.
What is USB Disk Ejector?:
A program that allows you to quickly remove USB (and Firewire) drives in Windows. It was originally designed to remove only USB pen drives but will now eject any USB drive.
It can be run as a non-visual command line program or a normal gui 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 partial drive name.
Its very useful if you have a USB flash/pen drive, especially if you use a menu such as PStart or the Portable Apps launcher.
With one click the menu will exit, the program will run silently and the drive will be ejected. See the 'Command Line Options' section below for more information.
When run as a 'normal' GUI program the tools enables USB devices to be quickly ejected through a mouse click or keyboard press.
It's especially useful when dealing with multiple USB devices and for Vista users who don't want the 'now safe to remove this device' dialog box to appear.
The program has been tested on WindowsXP, Windows Vista and Windows 2000. It should work on any version of Windows from 2000 onwards.
What do I need to use this?:
A removable USB device, such as a pen drive, digital camera or IPod.
Using the program (without any command line options):
- Load the program, if you have any removable USB drives they will be shown in the list.
- If you plug in any additional devices while the program is running then the list will automatically update to show them.
- Double click on a device to remove it.
- Unplug the device from your computer.
Command Line Options:
These command line options will change in a future stable release.
The following command line options are available:
- /?
Displays a dialog that shows all command line options.
- /NOSAVE
Stops the program from saving any setting to a file and ignores any existing settings file.
- /SILENT
Stops balloon messages from appearing when the program is run in GUI mode.
- /SHOWEJECT
Shows the standard ''It is now safe to now safe to remove'' message when a drive is ejected. This message is disabled by default.
- /REMOVETHIS
Ejects the drive that the program is running from. Eg if the program is run from a usb stick on drive G then drive G would be ejected.
- /REMOVELETTER
Ejects the specified drive letter. Eg /REMOVELETTER G
- /REMOVENAME
Ejects the drive with the specified name. Eg /REMOVEDRIVE "Sandisk U3 Titanium"
Partial name matching is possible if a wildcard (*) is used. Eg /REMOVENAME "*SANDISK" would eject a drive that had Sandisk in its name.
- /CLOSEAPPS
If there are any applications running from the drive, asks them to close. If any applications refuse to close then the eject will fail. This switch is considered relatively safe and should mean that no unsaved data is lost.
- /CLOSEAPPSFORCE
If there are any applications running from the drive, force them to close. This will mean that any unsaved data in those programs will be lost. This has the same effect as ending a task/process.
The REMOVETHIS, REMOVELETTER and REMOVENAME parameters are command line only. Ie. when they are used the program will run silently, with no window appearing.
There will be no feedback from the program and a message will only be shown if there is an error and a device cannot be ejected.
The command line options may be combined, eg:
- /SILENT /SHOWEJECT - would run the program in GUI mode, but no balloon messages would be shown and the eject message would be shown.
- /SHOWEJECT /REMOVELETTER F - would eject drive F without any window appearing and the eject message would be shown.
Additional Features:
Card reader/flash card support. If you have a card reader the program will detect this and allow you to eject card media from this device.
Mobile Mode: If you try and eject the drive that the program is running from then the program will restart itself in mobile mode.
It copies itself to the pc's temp folder, ejects the drive, then closes and deletes itself. It means that you can run the program from a usb pen drive and then eject that pen drive.
IPod Eyecandy: If you have an IPod connected via USB, then it will have an IPod icon instead of the usual disk icon in the program.
Minimize to Tray: If you minimize the program, it will minimize to an icon in the system tray and wont show in the taskbar until restored.
Limitations:
- There is no message when a disk is successfully ejected in mobile mode. This is by design since the intention is for the program to eject the disk, close and delete itself as quickly as possible.
- The following only applies if you use the SHOWEJECT command line switch to show the safely remove message:
If you have balloon tips turned on in Windows XP then Windows shows a balloon tip when a device is removed ("device x can now be safely
removed from the system"). If you remove one device and then try to remove another, the second device will not be removed until you
close the balloon tip. If this irritates you, then you can try disabling balloon tips altogether. See this
link for information on how to do this.
Acknowledgements and Thanks:
Ejection code is based upon C code by Uwe_Sieber.
Program and drive icon is from the Snow.E2 set by Sascha Höhne.
Ipod icon unknown - please contact me if you are/know the author.
Uses the Project JEDI 'Setup and Config Manager API'.
C to Pascal Converter by Ural Gunaydin was used to translate some C code.
Disclaimer:
The software is provided "as-is" and without warranty of any kind, express, implied or otherwise, including without limitation, any
warranty of merchantability or fitness for a particular purpose. In no event shall the initial developer or any other contributor be
liable for any special, incidental, indirect or consequential damages of any kind, or any damages whatsoever resulting from loss
of use, data or profits, whether or not advised of the possibility of damage, and on any theory of liability, arising out of or in
connection with the use or performance of this software.
Support:
Contact me
bgbennyboy 15/04/09