I can eject a network drive using net use X: /DELETE
but when I try to use this same command on removable media I get an error:
The network connection could not be found.
More help is available by typing NET HELPMSG 2250.
Yes, obviously it isn't a network connection, so how do I eject the device from a script?