Windows – Dismount a USB Volume from Command-line

command linevbscriptwindows

How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?

Best Answer

Check out the two following Windows utilities:

  • Mountvol - "Creates, deletes, or lists a volume mount point."
  • Devcon - "Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices."
Related Question