how to automate a forced device uninstall

  • Thread starter Thread starter Todd and Margo Chester
  • Start date Start date
T

Todd and Margo Chester

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
 
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
(e-mail address removed)
Replace "Z" with "L"
 
Clay said:
Devcon.exe, a free tool at Microsoft's site, can do this. It is their
command line Device Manager.
Clay Calvert
(e-mail address removed)
Replace "Z" with "L"

Cool! Thank you!

-T
 
Back
Top