1
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?
1This is not a duplicate of the other question. That question is about removing a USB device; this is about ejecting a removable media. Using the solutions in the other question will remove the drive which is not the same as ejecting the media in the drive. If you eject a memory-card from a card-reader, then you can take the card out and plug another one in and start using it. If you remove it, the whole reader will be removed and it will be a real pain to get it back. – Synetech – 2016-05-01T22:59:08.673