
EjectMedia V1.10 - ejects a media from a drive
Freeware by Uwe Sieber - www.uwe-sieber.de

Works under Window 2000, XP, Server 2003 and Vista only.

Supports removeable drives and CD-ROMs only.
To prepare an external drive for save removal use my tool
RemoveDrive:
http://www.uwe-sieber.de/removedrive.zip


Usage:
EjectMedia DriveSpec: [-l][-h][-w:nnnn]

DriveSpec: is the drive to remove, e.g. U:
[-l] loop until success
[-f] force eject (not much better than just to throw out the media)
[-s] self delete EjectDrive.ex when finished
[-h] show open handles (admin rights required, exprimental, may freeze!)
[-w:nnnn] wait nnnn milliseconds before close



Admin rights or running USBDLM service required!

It first tries to open the drive whose media to eject. If it
failes then it tries to charge the USBDLM service to eject 
the media. USBDLM is the 'USB drive letter manager'. Since
V2.4.2 it can act as 'Eject Server', see the USBDLM homepage:
http://www.uwe-sieber.de/usbdlm_e.html




Returns Errorlevels:

0 - successfully ejected a media
1 - drive valid but media not ejected
2 - parameters are invalid

4 - EjectMedia.exe located on the drive to remove -> temporary copy 
    created and executed








