How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?
From a batch script, the easiest way is to call USB Disk Ejector. (Sync might work too, but it wants a drive letter, which is not always predictable.)
Check out the two following Windows utilities:
You can use DevEject.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago