How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?
You can use DevEject.
Check out the two following Windows utilities:
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.)
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago