I need to know it this is possible:
At my job we take aerial digital photographs. Our rigs have swappy
cages with 2 laptop hard drives in them (not standard-designed for
only 1). We have a system that makes them hot swappable; we do this by
hooking the swappy cage up to an IDE card, and while the computer is
on, running a vb script that runs devcon.exe to disable the ide card.
We then put the drive in, and then use devcon again to re-enable the
card. The drives are found. (sometimes in wrong order...for example
the swappy drives show up as drive 0 and 1 and the C: drive as drive
2- a problem as will be explained).
When we recycle the drives, we need to wipe the mbr and format them.
This is difficult to do programmatically all the time because
sometimes the C: drive is replaced by the swappy drive. That is, if we
write a program to format and wipe the mbr on drives 1 and 2 (assuming
they are the swappy drives), the C: drive (which was drive 0) may show
up as drive 2 and would get erased.
In short, I want to make an interface using vb.net that will do these
steps separatly, and if possible, programatically without using dos
commands and programs. What parts of this procedure can be done using
vb code and com objects, references etc. instead of relying upon dos
based programs like devcon, gdisk32, fdisk, format.exe, etc.? I have
not been able to find much...
Thanks,
MikeyBe