Ask Leo! by Leo A. Notenboom

Is there a way to "Safely Remove Hardware" from a batch file?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Hardware » USB and 1394 Interfaces

Comments

Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.

Comment Page:  1  |  2  |  3  |  4  |  5 

Hi, this is a very helpfull page, thanks leo for all your efforts, and all the other people who have commented. I have the usb problem in reverse. I use wireless usb devices (for networking) and they appear in the safely remove hardware list. users sometimes accidentally remove the wireless device, and then the pc loses it's connection. Does anyone know of a way to remove a certain device from the list? so it CAN'T be turned off. cheers, jonnyxx.

Posted by: jonnyxx at August 25, 2007 11:50 PM

The comment Jared posted on Jan 20, 2007 is almost perfect, but I've adopted an easier way to use it. Copy the directory\command

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

Go to your desktop and create a new shortcut and paste that directory\command into the location bar. If you want the special Windows icon for it open up the properties of the shortcut, click Change Icon, click Browse, and (if it's already showing you your system32 directory) find hotplug.dll and open that. The Safely Remove Hardware icon is located in there.

I created this process for a novice user that liked to do everything from her desktop. The article suggests a much more complicated process, the icon/shortcut can be transferred to many XP computers. I'm just cutting out the middle man of the command prompt because c'mon man! this is Windows! not Linux! lol

Posted by: Chip at September 18, 2007 7:28 AM

Worked like a charm! Excellent article.

Posted by: Rockechris at October 9, 2007 1:08 AM

now able to see that unplag or eject hardware,

not showing usb device

able to see in mycomputer

Posted by: yogesh at November 28, 2007 11:37 PM

Sometimes i forget to use "Safely Remove Hardware" commands for my usb drive . Can this be any problem .

Posted by: Shrav at May 26, 2008 8:11 AM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes. In the worst case you could corrupt and lose all the
data on the drive.

Leo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFIOu2OCMEe9B/8oqERAqheAJ948wYoTwUYT2F7V2Yu96koZSMusACeN1OR
jHtBs3PzsTd7pikUo6brF8I=
=td4N
-----END PGP SIGNATURE-----

Posted by: Leo at May 26, 2008 10:04 AM

A program called USB Disk Ejector - is free and works perfectly!

Ian
.........

http://www.i-logo.net

Posted by: Ian at September 10, 2008 7:01 AM

Can it be used to remove bluetooth devices?

Posted by: DGlower at April 10, 2009 1:23 AM

Requires restart to remove esata connected drive that IS safely removable via dialogue. I hope it can come back after restart...

Posted by: Paul_Bags at October 17, 2009 1:26 PM
Comment Page:  1  |  2  |  3  |  4  |  5 
Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.
Post a Comment

Question? Ask Leo!