Home »
Hardware
»
USB and 1394 Interfaces
Read the article that everyone's commenting on.
Subscribe to the RSS Feed for comments on this article.
In the first sentence of the previous post, I meant to ask if there is a way to stop the usb drive from the command prompt.
Posted by: jared at September 7, 2006 7:00 PMI found the answer to my question, if anyone else is looking for the same type of thing, go to : http://ask-leo.com/safely_remove_hardware_where_did_the_icon_go_how_do_i_safely_remove_hardware_without_it.html This tells you how to create a shortcut to the "safely remove" dialogue box. I copied the shortcut onto my USB drive, that way I always have the ability to stop the drive, regardless of the computer I am using.
Posted by: Jared at September 14, 2006 5:31 PMI seem to have the opposite problem. I have a digital camcorder which I have previously connected (successfully) via USB port. I then installed an external hard drive backup. Now when I plug in the camcorder, Windows just comes up with teh 'safely remove hardward' icon & seems to think that the camcorder is an external disc drive. The camcorder software seems to think that no device is connected. HELP!
Posted by: terry at October 16, 2006 4:56 PMI downloaded the Devon program
got two programs, one don't work.
explanations here are lousey. This page is some kind of sick trick.
http://www.uwe-sieber.de/usbstick_e.html
RemoveDrive from that page works admirably.
For example:
> removedrive e:
That's it. Same effect as using the WXP Device manager :P
After reading about the misadventures of using Devcon, I thought you might like to how I do this. This is a batch file of the safely remove dll.
Note that this may not work on restricted acess machines.
Open notepad and copy the lines between the *'s (do not include the *'s)
*******************************
REM SAFEREMOVE.BAT
echo off
echo SAFELY REMOVE
echo Starting Safely Remove
%windir%\system32\RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
******************************************
Save the file as Safely_Remove.bat
Make sure that you have the .bat added to the file name.
You can copy this file to your USB drive, and then take it with you.
I recommend copying it to the desktop of the computer that you are on before trying to use the batch file, as the drive can't be stopped while running the batch file.
If this doesn't work (i.e. very restricted access, I run into this at school where the system directory is off limits - perhaps rightly so.... but I digress) you can copy the 3 files that the batch file uses from your home computer. Just put them in a folder, copy your shortcut to "safely remove", and change the shortcut properties accordingly. If you don't know how to do that, I can post it later.
There is also a program called Safely Remove. You can download a free 30-day(?) trial. Ironically, if you copy the executable file to your USB drive, you can take it with you, copy it to the computer that you are using, and it will work. Not only that, but by having it on the USB drive, the trial period never runs out, that is, it says "day one" each time you use it. Very cool, although unethical!!
I found an amazing program that allows you to quickly remove the USB devices that you commonly use called RemoveDrive. I found it when I was researching some of the other program alternatives like "USB Safely Remove" (which is shareware and has an annoying popup screen) & "DevEject" (Which is another command line excecutable like RemoveDrive, but it does not remove drives considered as "Local Drives").
RemoveDrive is a command line executable, so you would need to tell it what to remove drive by drive. I saved the RemoveDrive.exe to "C:\Program Files\RemoveDrive" and then created a BAT Batch file with the following:
--------------------------------------------------
CD\
CD C:\Program Files\RemoveDrive
RemoveDrive.exe "Simple Flash Disk 2.0 USB Device"
RemoveDrive.exe "Multi Flash Reader USB Device"
--------------------------------------------------
The device names in quotes are the names of my USB devices as they appear in the "Safely Remove Hardware" >> "Stop a Hardware device" screen that you would normally have to use to remove your devices. Now I have the Batch file assigned to a "Hot Key Plus" combination, and I can remove my USB drives in a flash!
You can get the RemoveDrive.exe file at: [url]http://www.uwe-sieber.de/usbstick_e.html[/url]
Hope this helps
Posted by: Quixilvr at April 9, 2007 11:25 AMHey Leo, thanks.
Devcon works like a charm.
Now, I wondered.. if a small utility like this can romeve my eSata external harddisk drive, connected by SiImage Sata controller....
Is there any way by messing with the registry, to place/show my eSata drive under "Safely Remove Hardware" in XP (where it is somehow not present now)?
Thanks in advance,
Jumme
When i connect my USB FLASH, drive don't show in my computer!!! Show the message that is all ok but isn't help!
Posted by: pop4e at May 24, 2007 1:48 PMWhen i connect my usb pen drive on my laptop i see removal drive in my computer and work proparly but neither showing on taskbar for safaly remove nor get "usb device found massage" Please salve my problem.
Posted by: ANGAD at May 26, 2007 12:48 AMTo post a comment on "Is there a way to "Safely Remove Hardware" from a batch file?", please return to that article's main page.