RemoveDrive 2.8.7

Uwe Sieber in System Utilities / Other

RemoveDrive screenshot

User Rating: 2.5 (35 votes)

RemoveDrive prepares drives for "Safe Removal" by commandline. It works with drives only but not for other device types.

RemoveDrive DriveSpec: [-l][-h][-b][-i][-s][-w:nnnn]

DriveSpec is the drive to remove, e.g. U: or an NTFS mountpoint as "C:CardReaderMulti Reader SD"
or . for the current drive
or for the drive of the RemoveDrive.exe
or a volume name like ?Volume{433619ed-c6ea-11d9-a3b2-806d6172696f}
[-L] loop until success
[-e] try to dismount and eject if the removal fails
[-h] show open handles (admin rights required, exprimental, may freeze!)
[-w:nnnn] wait nnnn milliseconds before close
[-s] self delete removedrive.exe
[-b] let Windows show the "Safe To Remove Hardware" balloon tip
[-i] stop Windows indexing service (CiSvc) for a moment if required (admins)
[-d] show debug information

or

RemoveDrive "AnyIdString"
RemoveDrive can be used with all types of drives. Started with -L it tries to remove the drive in an endless loop until success or until canceled.
As result it shows 'success' in green or 'failed' in red.
Sample:

removedrive u: -L
would try to prepare drive U: for safe removal in an endless loop until success.
For drives mounted into NTFS folders the full path of the folder can be used:

removedrive "E:_CardReaderUSB20 CF" -L
Used with multislot-cardreaders it would remove the whole reader, regardless of the given slot. For removing a card only, use my EjectMedia tool, see below.
Instead the drive letter one of the drive's device ID strings can be used. The friendly name can be used as "Corsair Flash Voyager" or the hardware ID of the drive, like USBVID_1234&PID_5678...
Wildcards can be used here. E.g. RemoveDrive *Flash* to remove the first drive with 'Flash' in its device name.

RemoveDrive can be started from the drive to remove. Because a running EXE on a drive prevents a drive being prepared for safe removal it creates a temporary, self deleing copy and starts it with the same parameters. To be drive letter independent, use . instead a drive letter. The current drive is removed then. To remove the drive of the RemoveDrive.exe use as drive.

If the removal fails then someone still accesses the drive. This can be something banal like an open Word document or an mounted TrueCrypt container or some kind of monitoring tool like a virus scanner. A network share on the drive that has been used makes the removal fail too...
By means of SysInternals ProcessExplorer you might be able to discover which program holds an open handle to the drive. After starting it go to 'Find' -> 'Find Handle or DLL', enter the drive letter like X: or a part of the DOS device name like 'Harddisk3' and search. You get the 'DOS device name' by means of my ListUsbDrives or ListDosDevices.

top download editor's pick
File Size: 41 kB License: Freeware Price: FREE
Platform: Windows XP, Windows Vista, Windows Vista x64, Windows 7, Windows 7 x64
Downloads: Total: 239 | This Month: 22 Released: 2017-08-04
RemoveDrive Similar Software

Remove Empty Directories 2.2 Jonas John    

Remove Empty Directories is a handy tool specially designed to allow you to remove empty folders recursively. This is a tiny, simple application designed to searche and delete empty directories recursively below a given start folder. And before deleting anything it let's you check all empty .... Free download of Remove Empty Directories 2.2

software pick   

Drive Speedometer 1.1.0 PCWinTech    

Drive Speedometer is a program I made to help ... current read and writes speeds of you hard drives. Benefits include: 1. When your system is ... usage are fine, it is normally the hard drive being maxed out. Now you will be able to keep an eye on the hard drive performance. 2. When a drive is slowly dying .... Free download of Drive Speedometer 1.1.0

software pick   

Drive Manager 4.20 Alex Nolan    

If you have lots of drive letters of different types of drives, such as mapped network drives, thumb drive (USB memory sticks), smart media and compact flash, ... is perfect to help you manage them. Using Drive Manager to Identifying Which Drive is Which. Drive Manager has been written to help you easily .... Free download of Drive Manager 4.20

Drive Bender 2.4.0.0 Division-M    

Drive Bender is state of the art, single point storage pool technology for Microsoft Windows. Drive Bender presents multiple hard drives as a single pool of storage, either as one or more drive letters, or a network shared drive. Drive Bender also provides the user with the ability ... their storage pool by simply adding a new drive. Adding a new drive expands the pool by .... Free download of Drive Bender 2.4.0.0

Portable Remove Empty Directories 2.2 Jonas John    

Remove Empty Directories is a handy tool specially designed to allow you to remove empty folders recursively. This is a tiny, simple application designed to searche and delete empty directories recursively below a given start folder. And before deleting anything it let's you check all empty .... Free download of Portable Remove Empty Directories 2.2

software pick   
Popular Software in System Utilities / Other

3DP Chip 18.05 3DPChip.com     update

Enables you to enumerate devices and download the latest device drivers. Free download of 3DP Chip 18.05

software pick   

3DP Net 16.04 3DPChip.com    

An integrated driver installer that supports many model of Ethernet card.. Free download of 3DP Net 16.04

software pick   

Rocrail Revision 14569 Rob Versluis     update

Support for automatic and manual modes for controlling trains, schedules. Free download of Rocrail Revision 14569

PickMeApp 1.2.2.0 PickMeApp.com     update

Transfer your applications from one PC to another with this utility. Free download of PickMeApp 1.2.2.0

software pick   

Rufus 2.14.1086 Pete Batard    

Helps format and create bootable USB flash drives. Free download of Rufus 2.14.1086