I am looking for a command line command to safely remove a USB hard drive in Windows 7.
The old standby of "rundll32 shell32.dll Control_RunDLL hotplug.dll" will not work in Windows 7 because it brings up the old dialog which cannot remove things that aren't Windows 7 ejected. Windows 7 expects an eject of a Windows 7 USB flash drive.
I'm not looking for a 3rd party program to do this. I'm just looking for a command line command I can give that will do the Windows 7 eject.