[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Stopping USB drives from XY4



** Reply to message from Harry Binswanger  on Thu, 08 Dec 2005
18:51:25 -0500


> I'd like to know if there's really any data-loss danger from pulling out
> flash drives (after the writing is done).

Definitely. Do you use lazy writes? XP does, by default. They say they're
done, but they aren't. How do you actually know when writing is done? How do
you know what the consequences are of putting ungrounded power to your USB
device? You can't assume that all the power connectors will let go
simultaneously.

DEVCON is not what you want either, jeesh (manages devices at a *very* low
level -- this is *hot*, don't touch). If you want to summon the Eject Hardware
dialog directly from XyWrite (under Win2K), command:

dos/nv/z /c RunDLL32.exe shell32.dll,Control_RunDLL hotplug.dll

Then you need a conditional script to find the USB device and "Stop" it -- GoXy
can do this. What *exactly* do the two lines that relate to your two USB
devices say, in your Unplug or Eject Hardware dialog?

-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------