Thursday, November 17, 2011

Adding a Safely Remove Hardware icon

http://www.neilturner.me.uk/2007/04/05/create_a_safely_remove_ha.html

For a legacy laptop that runs well excepting there's no Safely Remove Hardware icon in the systray for your USB drives, you can use this command to create a shortcut.

%windir%\system32\RunDll32.exe shell32.dll,Control_RunDLL HotPlug.dll

Alternately, without a shortcut you can go thru Device Manager, right-click on the device for Properties, and on the Policies tab there is an underlined link for "Safely Remove Hardware".

Just found Uwe Sieber's page with many cool notes and command line tools, including "RemoveDrive". This utility even has a switch to show the open file handles on the drive to identify which app or service is preventing removal.

http://www.uwe-sieber.de/usbstick_e.html
http://www.uwe-sieber.de/drivetools_e.html#RemoveDrive

No comments:

Post a Comment