Appreciate the answers above, one could not ask for a more responsive community!
Code (2000/XP) for it here:
http://support.microsoft.com/kb/165721
I'll try building an EXE later.
I suspect that just yanking it could lead to problems ... corruption possibly, orphaned open handles almost certainly. Stray open handles can cause delays at shutdown/logoff
Hope you do, because indeed yanking out a USB disk emulator can corrupt its file system. I tried fixing one - had to be reformatted...
My comments for the other answers below.
The internal command EJECTMEDIA has a warning: "It is not intended for unmounting USB drives."
Mount / dismount are operations not listed by WinNT, but show up when you want to
chkdsk a drive. Obviously it can be done with a compiled program (eiher a plugin or a stand-alone one). I was hoping that somebody can inform me of an API one can invoke from TCC with the @WINAPI[] function to dismount the USB device. On rare occasions the
mount function may also be desirable.
I wrote "disk emulator" because at least one of my devices has no physical disk drive (SD card). The driver makes it behave as if it were a disk drive, hence it is a virtual disk.
I do not have DEVCON, nor a compiler that's ready to use.