how do i remove a usb drive with a script?
- From: ToddAndMargo@xxxxxxxxxxx
- Date: 22 Mar 2007 15:09:58 -0700
Hi All,
I know this may not be the correct group to post this in,
but I figure you will all forgive me if it is not. ("devcon"
deals with the registry.)
I wrote a customer a batch script that backs up her
internal hard drive to an external USB hard drive.
Problem: she ALWAYS forgets to press the add/remove
icons and just jerks the cord out of the drive (she has three
drives that she rotates). I clear the error by
going into the device manager and doing a remove
on the external drive. (I fear showing her how to
use the device manager.)
Now, I know that there is a way to do this with "devcon" from
my script. Problem: I am not smart enough to figure out how.
Can some kind person tell me 1) the devcon command to
search for the external usb hard drive and 2) how to use
devcon the do the same thing I manually do in the device
manager?
Many thanks,
-T
.
- Follow-Ups:
- Re: how do i remove a usb drive with a script?
- From: Michael Bednarek
- Re: how do i remove a usb drive with a script?
- From: Mark V
- Re: how do i remove a usb drive with a script?
- Prev by Date: Re: Corrupt SOFTWARE hive keeps recorrupting
- Next by Date: Re: how do i remove a usb drive with a script?
- Previous by thread: Corrupt SOFTWARE hive keeps recorrupting
- Next by thread: Re: how do i remove a usb drive with a script?
- Index(es):
Loading