PDA

View Full Version : how to automate a forced device uninstall


Todd and Margo Chester
August 7th 06, 03:40 AM
Hi All,

I have a XP Pro computer with an external SATA (E-SATA)
drive attached. Occasionally, the E-SATA drive has to be
swapped out with a second drive. The method of doing this is
to go into the device manager, select the external hard
drive, clink on "uninstall", flip the power off to the
drive, swap the new drive in, turn the power back on.
The device manager automatically loads the new drive
up. Works fine.

Question: it there a way to automate this with a
batch file, Perl script, etc, such that the user only
has to click on a desktop icon to uninstall the drive?
(I am afraid the user will accidentally uninstall her
C: drive.)

Many thanks,
-T

Clay Calvert
August 7th 06, 03:53 AM
On Sun, 06 Aug 2006 19:40:50 -0700, Todd and Margo Chester
> wrote:

> Question: it there a way to automate this with a
>batch file, Perl script, etc, such that the user only
>has to click on a desktop icon to uninstall the drive?
>(I am afraid the user will accidentally uninstall her
>C: drive.)

Devcon.exe, a free tool at Microsoft's site, can do this. It is their
command line Device Manager.
Clay Calvert

Replace "Z" with "L"

Todd and Margo Chester
August 7th 06, 05:54 PM
Clay Calvert wrote:
> On Sun, 06 Aug 2006 19:40:50 -0700, Todd and Margo Chester
> > wrote:
>
>> Question: it there a way to automate this with a
>> batch file, Perl script, etc, such that the user only
>> has to click on a desktop icon to uninstall the drive?
>> (I am afraid the user will accidentally uninstall her
>> C: drive.)
>
> Devcon.exe, a free tool at Microsoft's site, can do this. It is their
> command line Device Manager.
> Clay Calvert
>
> Replace "Z" with "L"

Cool! Thank you!

-T

Google